So if I have a table as follows
with column
date datetime
employee varchar
and I want to find all the records where a particular user has the same date more than once
and for each duplicate found I would need
date employee numDuplicates
You can use
GROUP BYwithHAVINGclause: