Hello,
I have query like this
SEL distinct
A.DOMICILE_CHANNEL_ID
, A.PRODUCT_ID
, COUNT(B.PARTY_ID) ,
COUNT( B.ACCOUNT_NBR)
FROM DT_VEDW.T0300_ACCOUNT A
INNER JOIN dt_vedw.t0328_party_account B
ON A.ACCOUNT_NBR = B.ACCOUNT_NBR
INNER JOIN DT_VEDW.B0200_PRODUCT_MAP C
ON A.PRODUCT_ID = C.MAPPED_ID
GROUP BY 1,2
In this query, I am getting same Party Id and Account Nbr is coming. Actually, I should get less number of Party's.
Because, party's has more number of Accounts.
What is the problem in the query. Please help me.
I have query like this
SEL distinct
A.DOMICILE_CHANNEL_ID
, A.PRODUCT_ID
, COUNT(B.PARTY_ID) ,
COUNT( B.ACCOUNT_NBR)
FROM DT_VEDW.T0300_ACCOUNT A
INNER JOIN dt_vedw.t0328_party_account B
ON A.ACCOUNT_NBR = B.ACCOUNT_NBR
INNER JOIN DT_VEDW.B0200_PRODUCT_MAP C
ON A.PRODUCT_ID = C.MAPPED_ID
GROUP BY 1,2
In this query, I am getting same Party Id and Account Nbr is coming. Actually, I should get less number of Party's.
Because, party's has more number of Accounts.
What is the problem in the query. Please help me.