I am looking for a way to do the following with a single query:
SELECT `ID`, `Name`, `Interface`,
(select count(*) FROM CONCAT('listings_', `ID`) WHERE `Status`='Active') as
`activeListings`
FROM `sites`
- Problem with Dynamic table names. Marco Bartz
- Re: Problem with Dynamic table names. Marco Bartz
- Re: Problem with Dynamic table names. nigel wood
- Re: Problem with Dynamic table names. Joerg Bruehe
