Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Help With Inner Join

$
0
0

Hi,

 

Can some one explain me this issue

 

SELECT COUNT(*) FROM "ECCDATA"."CUST1"  O/P = 800

SELECT COUNT(*) FROM "ECCDATA"."CUST1"  WHERE MANDT = '800' O/P = 800

SELECT COUNT(*) FROM "ECCDATA"."CUST2"  O/P = 13779

SELECT COUNT(*) FROM "ECCDATA"."CUST2"  WHERE MANDT = '800'    O/p = 13751

 

SELECT COUNT(*) FROM ( SELECT T1."A1", T2."MANDT" FROM "ECCDATA"."CUST1" AS T1

INNER JOIN  "ECCDATA"."A2" AS T2

ON T1."A1" = T2."A1" AND

   T2."MANDT" = '800' )      O/P = 13783


SELECT COUNT(*) FROM ( SELECT T1."A1", T2."MANDT" FROM "ECCDATA"."CUST1" AS T1

INNER JOIN  "ECCDATA"."A2" AS T2

ON T1."A1" = T2."A1" AND

   T1."MANDT" = T2."MANDT")      O/P = 13779

 

Thanks


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>