SQL query [message #599098] |
Tue, 22 October 2013 04:10 |
|
poojamunj
Messages: 64 Registered: May 2011 Location: MUMBAI
|
Member |
|
|
Hi,
I want to develop a query through which I should be able to fetch records which is common to different records of the same table. For eg: Table: ISID, Columns :Id_cntxt_typ, instr_id.
Instr_id Id_cntxt_typ
1 A
1 B
2 A
3 B
3 A
4 A
5 A
5 B
Expected output:
Instr_id
1
3
5
Please help me in forming the query for getting the said output.
Thanks,
Pooja
|
|
|
|
|
|
Re: SQL query [message #599112 is a reply to message #599109] |
Tue, 22 October 2013 04:58 |
Roachcoach
Messages: 1576 Registered: May 2010 Location: UK
|
Senior Member |
|
|
That doesnt make sense to me, there are too many ways it can be interpreted.
Please post a test case showing desired outputs before and after.
|
|
|