on 07-25-2014 7:50 AM
Dear Experts,
I was needed a query in which I can find same Cardname from two diff Cardtype ('Customers' and 'Vendors').
Any suggestion will be highly appreciated.
Regards,
Ravi
Hi,
Try this below query and let me know your feedback,
select cardcode,cardname,Balance,CardType from ocrd G1
where CardName in (select CardName from OCRD where CardName = g1.CardName and CardType = 'C')
and CardType = 'S'
union all
select cardcode,cardname,Balance,CardType from ocrd G1
where CardName in (select CardName from OCRD where CardName = g1.CardName and CardType = 'S')
and CardType = 'C'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
14 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.