Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: RE: Need help on a SQL query

$
0
0
Author: Rohit Umarjikar
Posted: Wed Aug 03, 2016 4:24 pm (GMT 5.5)

Quote:
Why not join A and B and get the desired result ?

Because there is no relationship.
Anand,
1. code tags missing
2. wrong Alias names referenced all over.
3. end_dt , the null condition is missing.
4. How do you ensure to block the cus_id if there is a even single stat 'ACT' per org_id?
_________________
Regards,
Rohit Umarjikar
"Some things Man was never meant to know. For everything else, there's Google"


Viewing all articles
Browse latest Browse all 8500

Trending Articles