Skip to content
Advertisement

Count number of rows in each day grouped by another field

For the purpose of drawing an activity chart, how can we count number of rows for each type (distinct field value) in each day?

Consider a table with a date field and a field for each type:

For example output can be (last field is the count of rows with that type and in that day):

Advertisement

Answer

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement