I have a query below that would work perfectly well in TSQL but is not allowed in Mysql - does anybody know how to produce this using Mysql syntax. I want to get a max value from another table and produce it as a single field value in my result set. Can this be done?
SELECT BID,x,y (
SELECT max( aID )
FROM a
) AS z
FROM B
WHERE x = 1
SELECT BID,x,y (
SELECT max( aID )
FROM a
) AS z
FROM B
WHERE x = 1