SQL subquery with COUNT help

前端 未结 4 1692
挽巷
挽巷 2021-02-01 13:41

I have an SQL statement that works

SELECT * FROM eventsTable WHERE columnName=\'Business\'

I want to add this as a subquery...

         


        
4条回答
  •  一向
    一向 (楼主)
    2021-02-01 14:05

    Assuming there is a column named business:

    SELECT Business, COUNT(*) FROM eventsTable GROUP BY Business

提交回复
热议问题