Skip to content

Commit 69a0571

Browse files
committed
Create SQL Having Clause.sql
1 parent b1aa831 commit 69a0571

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

SQL Having Clause.sql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
4+
5+
6+
Select JobTitle, avg(Salary)
7+
FROM [SQLTutorial].[dbo].[EmployeeDemographics]
8+
join SQLTutorial.dbo.EmployeeSalary
9+
on EmployeeDemographics.EmployeeID = EmployeeSalary.EmployeeID
10+
group by JobTitle
11+
having avg(Salary) > 45000
12+
order by AVG (Salary)
13+
14+

0 commit comments

Comments
 (0)