on 06-03-2015 8:26 PM
Hi,
Can anybody tell me why this query doesn't give any records ?
select * from "HANA_CONTAINER"."@OCRD" t0
where t0."U_ACCT_TYPE"='DEB'
and t0."Code" not in (Select distinct "U_CardCode_ORG" from "SBO_V3"."OCRD" where "CardType"='C' order by "U_CardCode_ORG")
Table "HANA_CONTAINER"."@OCRD" has 33138 records
Table "SBO_V3"."OCRD" has 32035 records
Can someone please help ?
Thanks,
Paul
Probably the selection condition on U_ACCT_TYPE in combination with the anti join condition on Code isn't fulfilled by any record. A record will only be returned if it fulfills all conditions in the WHERE clause. The result set is independent of the number of records in the tables.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.