Hi
I had written a query which executes in MySql 4.0.1
But this is not working in 3.23.51 coz i had used Union function in the
query which is not supported by 3.23.51
So any idea how this can be made to work on 3.23.51. I need to have only one
Column in the result as TYPENAME
SELECT
CT.Company_Type as TYPENAME
FROM
RFQ_Details RD, Company_Type CT
WHERE
RD.RFQID = 4
AND RD.SEARCH_Type = 'COMPANY'
AND Company_TypeID = RD.TypeID
UNION
SELECT
UT.USER_Type as TYPENAME
FROM
RFQ_Details RD, User_Type UT
WHERE
RD.RFQID = 4
AND RD.SEARCH_Type = 'USER'
AND User_TypeID = RD.TypeID
---------------------------------------------------------------------
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