Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
fj40wdh
Creator
Creator

Map to different table name and schema

Trying to map source  table  to a target with a different table name and structure in a different schema, same database. Basically trying to compile data from one table and write the data to another table based on a filter. Keep getting error that the task cannot create the source table in the target schema. I don't want to create the source table in the target schema

 

sourceschema.Sourcetable ----->  targetscheam.targettable  

srccol1   ---->    tarcol1

srccol2   ---->    tarcol2

srccol3   ---->    tarcol3

different schema

different table name

different column names

 

Labels (3)
2 Solutions

Accepted Solutions
john_wang
Support
Support

Hello @fj40wdh ,

Thanks for reaching out to Qlik Community!

1. The basic steps of the schema name and table name mapping:

    Tables settings --> General --> Input "Table Schema" and "Table Name":

    john_wang_0-1710940859020.png

2. The column name mapping

    Tables settings --> Transform --> Output --> Name (overwrite the column name).

     For example mapping column "notes" to "comments":

     john_wang_1-1710940998419.png

Certainly this in table level, the mapping takes action at this table only. You may define Global Rule to map the table name/schema name/column name/column type etc.

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

fj40wdh
Creator
Creator
Author

Thanks, I had done that so I was confused. Turns out my table was suspended and that was causing other errors. Working now.

View solution in original post

3 Replies
john_wang
Support
Support

Hello @fj40wdh ,

Thanks for reaching out to Qlik Community!

1. The basic steps of the schema name and table name mapping:

    Tables settings --> General --> Input "Table Schema" and "Table Name":

    john_wang_0-1710940859020.png

2. The column name mapping

    Tables settings --> Transform --> Output --> Name (overwrite the column name).

     For example mapping column "notes" to "comments":

     john_wang_1-1710940998419.png

Certainly this in table level, the mapping takes action at this table only. You may define Global Rule to map the table name/schema name/column name/column type etc.

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
fj40wdh
Creator
Creator
Author

Thanks, I had done that so I was confused. Turns out my table was suspended and that was causing other errors. Working now.

john_wang
Support
Support

Glad to hear that, thank you so much for your support! @fj40wdh 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!