At 03:03 PM 6/26/02 +0530, Arul wrote: >SELECT >U.UserID >FROM >Transaction_Data T, Rfq_Data R ,Company C >WHERE >T.TransactionID = R.TransactionID AND >(R.Industryid=1 or R.IndustryID IN (SELECT IndustryID FROM >Company_Industries CI WHERE CI.CompanyID = C.CompanyID))
You ran this query through Oracle? I was going to reformulate this query using UNION (because of the OR), but looking closer I couldn't make sense of it ... + Your SELECT list references U.UserId, but I couldn't find table 'U' in your FROM list. What does that mean? + The table -- Company, in your FROM list is not joined with anything except in the subquery. I fail to see how the query could produce proper results. -- Lee Fesperman, FirstSQL, Inc. (http://www.firstsql.com) ============================================================== * The Ultimate DBMS is here! * FirstSQL/J Object/Relational DBMS (http://www.firstsql.com) --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php