I'm trying to get the MSSQL acceptable syntax:
SELECT COUNT(fd_Date) as DateCount, MAX(fd_date) as maxdate from Products
WHERE Products.fd_Date IN(select MAX(fd_Date) AS maxdate FROM Products)
to work. It was my understanding that subselects were supported in the production version of MySQL 4.016...this is not correct evidently as the above syntax fails. How would one re-write the above to work in MySQL? Many thanks in advance...
drdickson
SELECT COUNT(fd_Date) as DateCount, MAX(fd_date) as maxdate from Products
WHERE Products.fd_Date IN(select MAX(fd_Date) AS maxdate FROM Products)
to work. It was my understanding that subselects were supported in the production version of MySQL 4.016...this is not correct evidently as the above syntax fails. How would one re-write the above to work in MySQL? Many thanks in advance...
drdickson