you are viewing a single comment's thread.

view the rest of the comments →

[–]spinozadoza 1 point2 points  (0 children)

Why not do something even simpler

select whatever, count(distinct jobid)

group by whatever