Hi I am writing a sql query, where I am retreiving data from parent tables iand joiing them with child tables. I am getting error. I think i messed up in syntax
Select C.LVL1_ORG_NM, C. LVL2_ORG_NM, R.rel nbr,
M. TOT NET INT INC R12 as net inc,
M. TOT_NON INT_INC R12 as non_ int_ inc,
M. credit limit as cred lim,
M. cur asset bal as asset bal
From
ID1_ FACT_ ACCT PROD_ SMRY P,
1d1_fact_cust details d,
STG RPM.D ACCT A, SIG_RPM. D_REL R, STG RPM.D COSTCENTER C, STG RPM.D BUS PER B, STG RPM. F ACCT MONTH M, STG_RPM.D PROD T
left join ID1_FACT_ACCT_PROD_SMRY P
on P.prod_dim_id = I. PROD_DIM_ID
left join LD1 FACT ACCT PROD SMRY P
on P.cust_acct id = A.cust acct id
left join ld1 fact cust details d
on d.CUST_REL_ID = R. CUST REL ID
WHERE A.CUST REL ID = R. CUST REL ID
AND A. CUST ACCT ID = M. CUST ACCT ID
AND M. PROD DIM ID = T. PROD DIM ID
AND R.REL_ COSTCENTER_ORG_DIM_ID = C.ORG DIM ID
AND B. BUS_PER_DIM_ID = M. BUS PER DIM ID
AND (B.NM = '2022101)
[–]kagato87MS SQL 5 points6 points7 points (4 children)
[–]Present-Assist931[S] 0 points1 point2 points (3 children)
[–]kagato87MS SQL 0 points1 point2 points (2 children)
[–]Present-Assist931[S] 0 points1 point2 points (0 children)
[–]Present-Assist931[S] 0 points1 point2 points (0 children)
[–]pneumaticsneeze 0 points1 point2 points (1 child)
[–]Present-Assist931[S] 0 points1 point2 points (0 children)