sql query for getting data with join and count

Solutions on MaxInterview for sql query for getting data with join and count by the best coders in the world

showing results for - "sql query for getting data with join and count"
Chandler
31 Jan 2020
1Correlated subquery
2
3SELECT job_Desc
4 ,(select count(*) from employee where employee.job_id = jobs.job_id) as count
5FROM Jobs
6ORDER BY 2
7
8refrence:
9https://azagappan.wordpress.com/2006/06/23/using-count-with-joins/#:~:text=COUNT(*)%20returns%20the%20number,number%20of%20unique%2C%20nonnull%20values.