I have two tables registered and attended, each with two columns: AttendentId and SessionId. I would like to query the count of AttendantId from these two tables individually for a particular session id.
Example:
registered
AttendantId SessionId
ID1 SN1
ID2 SN2
ID3 SN1
ID4 SN3
Attended
AttendantId SessionId
ID1 SN1
ID4 SN3
And I want to obtain the following output:
Count(Registered) Count(Attended) Session ID
2 1 SN1
1 0 SN2
1 1 SN3