SpreadTooThin
unread,May 1, 2013, 4:46:34 PM5/1/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I have a table like:
ImageID, SeriesID, StudyID
ImageID is unique Series and Study are not unique.
StudyID, SeriesID, ImageID
A, a, 1
A, b, 2
B, c, 3
B, c, 4
C, d, 5
C, d, 6
C, e, 7
C, f, 8
I need a report that says:
There are 2 series in Study A and a total of 2 images
There are 1 series in Study B and a total of 2 images
There are 3 series in Study C and a total of 4 images
so sql output should look like:
StudyID, #Series, #Images
A, 2, 2
B, 1, 2
C, 3, 4
Help?
TIA.