Hii,
First of all consider a sample table structure
a_party b_party duration date time cell_id imei_no
9899452001 9899345651 13 20-05-2009 1300 18901 8888888888
9899452001 9818726390 5 20-05-2009 1500 24313 8888888888
9736071044 9899345651 9 20-05-2009 2300 16235 5555555555
9818726390 9899452001 25 21-05-2009 0900 32654 7777777777
9865385488 9899345651 9 21-05-2009 0930 18901 1234567890
9818726390 9899452001 20 21-05-2009 1000 24313 7777777777
9345873270 9899345651 5 21-05-2009 1200 24313 4567893210
question:
I have to find common "b_party",on the basis of distinct cell_id
for eg. common b_party is"9899345651" and "9899452001" from distinct cell_id
Please help.....can anybody could write query for the same.