RE: Please Help in query.

RE: Please Help in query.

 

  


Select CAROENQUIRYID, PARTICIPANTMAPPINGID from aTable mainAlias
where (select count(distinct CAROENQUIRYID) as totalEnqCount from
aTable) =
(select count(aliasTwo.PARTICIPANTMAPPINGID ) as totalEnqCount
from aTable aliasTwo
where
aliasTwo.PARTICIPANTMAPPINGID =
mainAlias.PARTICIPANTMAPPINGID)

Regards

Prabakaran.N
APAC
Infosys Technologies,Bangalore




-----Original Message-----
From: DBA
[mailto:oracledba-ezmlmshield-x47869133.[Email address protected]
Sent: Friday, July 08, 2005 4:35 PM
To: LazyDBA Discussion
Subject: Please Help in query.

Dear DBAs

My requirement is :

I have a table with 2 column :

CAROENQUIRYID PARTICIPANTMAPPINGID
============= ====================
66894942 65438974
66894942 65438977
66894942 65493088
66894942 65583883

66894973 65438974
66894973 65438977
66894973 66104270
66894973 66104271


Now i want result :

CAROENQUIRYID PARTICIPANTMAPPINGID
============= ====================
66894942 65438974
66894942 65438977

66894973 65438974
66894973 65438977

Meanse all the caroenquiryid and participantmapping id which is same for
all the enqiry.

Thanks & Regards
Umesh


--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com To unsubscribe:
see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com By using this list you agree
to these terms:http://www.lazydba.com/legal.html


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Oracle LazyDBA home page