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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creation of a table using columns from different tables

Hell Community member,

I have columns revcode,physname,adm,chargenumber,pattype from table1

and columns

doctorkey,doctorname,license no from from table2

Now I want to create a table3  containing the columns revcode,physname,admn,chargenumber,doctorkey,pattype , is it possible ?

Regards,

Ramesh

10 Replies
Not applicable
Author

Ramesh,

Are you sure Location is your right key to join these 2 tables?

What about ATTEND_DOCT_NO ?  Isn't it the same as CDK?

If it is, i would do

Doctors:

LOAD Location,
    
CDK
FROM F:\POC_Project\POC\DCCDB_DATA_SDOCTOR.qvd (qvd);

[ACP Detail Charges]:
LOAD
Location,
   
adm,
    
pat_type,
    
adm_date,
    
phys_name,
   
rev_code,
    
Charge_Number,
    
ATTEND_DOCT_NO,
    
ATTEND_DOCT_NO as ID
FROM F:\POC_Project\POC\vwACPDetail_Charges.qvd (qvd);

Table3:
LOAD Location,CDK, CDK as ID Resident Doctors;
Join
LOAD * Resident [ACP Detail Charges];

If Location is your key, do the same with it instead

regards

Chris