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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
Chanty4u
MVP
MVP

RE:Merge

hi all,

how to merge two tables into one table?

IN BOTH TABLE LVL_ID IS COMMON..

Note:  Without using joins

suppose i hve fields lik

Tab1:

lOAD lvl_id,

    req_id,

     req_name,

     req_desc,

     req_priority,

     create_date,

     req_moddate,

     create_by,

     mod_by,

     reqlast_action,

     req_status

FROM

[$(vSourceData)\newtable5.qvd]

(qvd);

Table2:

LOAD

lvl_id,

test_id,

     test_createon,

     test_desc,

     test_estmdevtime,

     test_lastaction,

     test_moddate,

     test_name,

     test_owner,

     test_type,

    

     tc_modifycount,

     test_delflag

FROM

[$(vSourceData)\newtable6.qvd]

(qvd);

how can i achive dis/?

16 Replies
Anonymous
Not applicable

Yes, but make sure both the field should be avail in both the tables and then Composite key of those 2 or 3 or 4 fields will de the rest

Chanty4u
MVP
MVP
Author

thnx anand...for ur expln.

Chanty4u
MVP
MVP
Author

thnx all...good info

buzzy996
Master II
Master II

it will simply append 2nd table records/data with ur first table records/data.

means,if we can assume 1'st table is having 10 records and new flag as table1.

2nd table is having 5 records and new flag as table 2.


ur output is:

10 records with flag as table from first table

5 records from 2'nd table with ur flag as table2.


in the above case by mistaken he put flag as Table1 in both the case.

Chanty4u
MVP
MVP
Author

yes...but i hve 5 tables  so i need those 5tables into one single table...

buzzy996
Master II
Master II

yes,u can do..if you want/if it meets ur requirements.

Chanty4u
MVP
MVP
Author

yeah...thnx shiva... i got the exact req wit anad reply.....