I have a table (op) with the following fields:
id, attdate, refdate and attend. If I want to see many occurences of id records, I can use the following:
select id, count(*)
from op
group by id
having count(*)>1
Now if I want to see the details of just one record, I can use id and order by...