Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
zhbuyiqlik
Contributor II
Contributor II

Assign Different Alias for different Tables

I have 3 tables: A, B, and C.   Each has a field called City.  I wanted to assign City from A as A.City, B as B.City and C as C.City;

I tried the following code, but the Qlik Aliased all cities as A.City.   Is there a way to limit the range of Alias?

[table A]:

Alias [City] as A.City;

SQL Select * from A;

[table B]:

Alias [City] as B.City;

SQL Select * from B;

[table C]:

Alias [City] as C.City;

SQL Select * from C;

Labels (1)
1 Reply
Anil_Babu_Samineni

You can remove Alias everywhere it will work (Ex [City] as C.City)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful