I have a table
EntryLog(Name String, CheckIn Boolean)
I want to count the number of checkins against each name. How do I write a query to get the result as a single resultset?
I have a table
EntryLog(Name String, CheckIn Boolean)
I want to count the number of checkins against each name. How do I write a query to get the result as a single resultset?
SELECT name,
COUNT(*)
FROM EntryLog
WHERE CheckIn
GROUP BY name;