on 12-23-2008 11:46 AM
Hi
From table CRD1 "bp addresses" I need a simple query to select when the "block" field of the "Ship to" address for a BP is the same as the "block" field of that BP's "Bill to" address..........sorry I am new to SQL!!
regards
Steve
Hi Vijay
Your query returns all BPs irrespective of whether the block of the "Ship to" is the same as block of "Bill to"
Thanks
Steve
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steve,
You could try this query
SELECT * FROM CRD1 T0 where adrestype ='B' and block in (select block from crd1 where adrestype='S')
Regards,
Vijay kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.