Skip to content

Commit ea2a1c8

Browse files
authored
Update Average Salary.sql
1 parent 0d55f44 commit ea2a1c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Hard/Average Salary.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
-- Question 108
2-
-- Given two tables as below, write a query to display the comparison result (higher/lower/same) of the average salary of employees in a department to the company's average salary.
2+
-- Given two tables as below, write a query to display the comparison result (higher/lower/same) of the
3+
-- average salary of employees in a department to the company's average salary.
34

45

56
-- Table: salary
@@ -61,4 +62,4 @@ when dept_avg = comp_avg then "same"
6162
else "lower"
6263
end as comparison
6364
from t1
64-
order by 1 desc
65+
order by 1 desc

0 commit comments

Comments
 (0)