M
Malika Jacob via AccessMonster.com
having trouble writing a query for the following case. suppose this is my
database:
id cust_name loc phone
1 abc bom 1111
1 abc bom 2222
2 def nwd 1212
3 def nwd 1212
4 xyz maa 3333
5 xyz maa 3331
6 xyz maa 3332
i want a query that will return those rows where:
if for a particular customer and loc there are 2 id's (eg cust"def" has id'
2,3...for customer xyz there are 3 id's 4,5,6)
database:
id cust_name loc phone
1 abc bom 1111
1 abc bom 2222
2 def nwd 1212
3 def nwd 1212
4 xyz maa 3333
5 xyz maa 3331
6 xyz maa 3332
i want a query that will return those rows where:
if for a particular customer and loc there are 2 id's (eg cust"def" has id'
2,3...for customer xyz there are 3 id's 4,5,6)