----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Raghu_78 Message 2 in Discussion Your result set looks like the combination of 2 tables. So use "UNION" here. Get all the records from one tables first and in the Next query get the records which match between 2 tables. This should result in ur result set. -Raghu -----Original Message----- From: BalajiKrishnan [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 10:48 AM To: BDOTNET Subject: SQL QUERY-NEED SOLUTION New Message on BDOTNET SQL QUERY-NEED SOLUTION Reply Reply to Sender Recommend Message 1 in Discussion From: BalajiKrishnan Hi, I have two tables (Table A & Table B) Table A Group_ID Color 1 Red 1 Blue 1 Green Table B Group_ID Color 1 Red 1 Blue 2 Red 2 Green 2 Blue 3 Red 3 Blue 3 Green 3 Yellow Now I need to fetch the records - which matches the group of records in table a and table b. For example : In table A we have Red,Blue & Green as a group so i need the fetch the record from the table B which has the same group or any one record matches the group. The result should be Red Blue Red Green Blue Hope I am clear,.. How to do this Balaji View other groups in this category. DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
