What us "U.UserID"? You don't have table U in the table list. 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)) >
-- For technical support contracts, visit https://order.mysql.com/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Mr. Alexander Barkov <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer /_/ /_/\_, /___/\___\_\___/ Izhevsk, Russia <___/ www.mysql.com +7-902-856-80-21 --------------------------------------------------------------------- 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