I have a table:
date id count(sub_id)
2016-03-01 2 1
2016-03-02 650 1
2016-03-03 2 1
2016-03-04 2697 2
2016-03-05 2 4
2016-03-06 2697 3
2016-03-07 1000 2
2016-03-08 2 3
2016-03-09 2697 3
the dates go from 1st march 2016 to 15 march 2016.
i need to check what id is present in every date - from 1 to 15 march. i.e what user submitted data on every day
so far I have this
select submission_date, id, count(submission_id)
from submissions
group by submission_date, id
having count(submission_id) >= 1
but this only shows the dates and users and how many submissions they made on every day - for example 2.