on ‎2022 Jan 27 7:39 PM
Hi All,
I have table in S4 schema and i need to create another table in custom schema. I just wrote a simple SQL statement in SQL Console Create Table <TableName> as Select * from S4.<Tablename>. It's getting failed.
I tried in all methods what we can use in SQL but it's getting failed. I'm not sure what i'm missing in conceptual.

Request clarification before answering.
Thanks Witalij,
Last night i tried below statement and it worked. Thanks for your inputs.
create column table "<TargetSchemaName>"."TEMP_DOCA" as (
select * from "<SourceSchemaName>"."DOCA" where GJAHR = '2021' and month(werks) <> '12')with data; -- with no data
with no data : it will create only structure
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you try with ()
Create Table <TableName> as (Select * from S4.<Tablename>)?
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.