Hi Friends,
I have one scenario in banking domain project....... one customer can have multiple accounts in a bank as shown below.
so how to write a query to get all customers no's where the corresponding all accounts status is 'Y'
so for the below scenario i need to show customers(1001,1003) as output
| customer id | account no. | account status | |
| 1001 | 12345 | y | |
| 1001 | 98768 | y | |
| 1001 | 2564987 | y | |
| 1002 | 12335 | n | |
| 1002 | 54557 | y | |
| 1002 | 787887 | y | |
| 1003 | 224234 | y | |
| 1004 | 54654 | y | |
| 1004 | 45614 | n |
Thanks in advance.....................