I have an ASP source that makes nested SELECT calls to a Microsoft SQL database. I have to convert these nested SELECTS so they can work in MySQL but I don't have much experience in SQL queries.
Here is one of the queries that must be converted, but I don't quite understand it...
SELECT CATS.CAT_ID, CAT_NAME, CAT_IMAGE (SELECT COUNT (*) FROM ADS WHERE ADS.CAT_ID = CATS.CAT_ID AND AD_APPROVED = 1) AS TOTAL FROM CATS ORDER BY CAT_NAME ASC
Any help would be greatly appreciated!
Thanks