I have such a tranformation in Qlik
abc:
SELECT distinct
AA.ACCOUNT_ID AS ACCOUNT_ID_AA,
AA.ID AS ID_AA,
AA.F_a AS F_a_AA,
AA.F_b AS F_b_AA,
AA.F_c AS F_c_AA,
AA.F_d AS F_d_AA,
AA.F_e AS F_e_AA,
AA.F_f AS F_f_AA,
AA.F_g AS F_g_AA,
AA.P_A_ID AS P_A_ID_AA,
AA.U_P_A_ID AS U_P_A_ID_AA,
AA.A_C AS A_C_AA,
AA.R AS R_AA,
AA.F_h__C AS F_h__C_AA,
AA.I AS I_AA,
AA.L AS L_AA
FROM $(vdb).A AA
;
left join (abc)
LOAD distinct
ACCOUNT_ID_AA AS P_ACCOUNT_ID_AA,
F_a_AA AS P_a_AA,
F_b_AA AS P_b_AA,
F_c_AA AS P_c_AA,
F_d_AA AS P_d_AA,
F_e_AA AS P_e_AA,
F_f_AA AS P_f_AA,
F_g_AA AS P_g_AA
Resident abc;
left join (abc)
LOAD distinct
ACCOUNT_ID_AA AS U_P_ACCOUNT_ID_AA,
F_a_AA AS U_P_a_AA,
F_b_AA AS U_P_b_AA,
F_c_AA AS U_P_c_AA,
F_d_AA AS U_P_d_AA,
F_e_AA AS U_P_e_AA,
F_f_AA AS U_P_f_AA,
F_g_AA AS U_P_g_AA
Resident abc;
Could you explain me what is the purpose of it? To handle relation between some hierarchies?
The second question is qlik joining. How does it join it? Could someone please show me this example on PostgreSQL or any other SQL language? The only thing I know is that Qlik joins by columns with the same name. So it means that SQL join is going to have in "ON" section all the column names?
I can't figure the logic behind this out.
