I have 2 tables, "T_COMMON_COUNTRY" and "T_HEI_STUDENTDATA". using the left join, I joined these tables
this is my request
SELECT [T_COMMON_COUNTRY].[COUNTRY_ID], [T_COMMON_COUNTRY].[COUNTRY], [T_HEI_STUDENTDATA].[STUDENT_ID] FROM ([T_COMMON_COUNTRY] LEFT JOIN [T_HEI_STUDENTDATA] ON [T_COMMON_COUNTRY].[COUNTRY] = [T_HEI_STUDENTDATA].[STDCOUNTRY])
now i get an idea like this
| Country ID | County | Student ID | | 1 | USA | 12 | | 1 | USA | 5 | | 2 | UK | 11 | | 2 | UK | 2 |
I want the number of students (Student_ID) per country,
I want to get an idea as below
| Country ID | County | Students | | 1 | USA | 2 | | 2 | UK | 2 |
source share