0
我使用這個查詢來獲取所有位置:MySQL的:LEFT JOIN和COUNT
SELECT
*
FROM
locations
WHERE
cat='Bars'
ORDER BY
locationname
ASC
現在我想顯示從表「事件」太locationinfo旁邊現有活動的量。
Table 'locations': (all unique locations)
locationid|locationname|address|cat
Table 'events': (different eventid's but maybe multiple hits for locationid)
eventid|locationid|eventname|eventdate
任何想法如何解決這個問題?