cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Sub Query in Snap without Oracle

Harsha3
New Contributor III

Hi ,

I am trying to make a snap which replaces the simple sub-query . However I was not getting the proper count at the output . After knowing about the types of joins in snaplogic , I tried using them but the count is not in sync . Can I know what went wrong . Please find the sample files and sub-query used.

VV_ACT_CALL_DISCUSSION_EXTRACT.xlsx (814.1 KB) ------For the table โ€œVV_ACT_CALL_Discussion_EXTRACT_IDโ€

VV_ACT_CALL_DETAIL_EXTRACT.xlsx (753.8 KB) ------For the table โ€œVV_ACT_CALL_DETAIL_EXTRACT_IDโ€

Query used:

SELECT DISTINCT A.โ€œCall_Detail_IDโ€,
A.โ€œCall_IDโ€,
A.โ€œProduct_IDโ€,
A.โ€œCountry_Codeโ€,
A.โ€œPriorityโ€,
A.โ€œTypeโ€,
A.โ€œIs_Deletedโ€,
A.โ€œCreated_dateโ€,
A.โ€œCreated_By_Idโ€,
A.โ€œLast_Modified_Dateโ€,
A.โ€œLast_Modified_By_Idโ€
FROM VV_ACT_CALL_DETAIL_EXTRACT_ID A WHERE A.โ€œProduct_IDโ€ NOT IN (SELECT B.โ€œPRODUCT_IDโ€ FROM VV_ACT_CALL_Discussion_EXTRACT_ID B
WHERE B.โ€œCALL_IDโ€ = A.โ€œCall_IDโ€)-------Count in Oracle 2263 whereas in Sanp I get around 10K

Please let me know so that I can also attach my snap.

Thanks,
Harshavardhana

0 REPLIES 0