Skip to content

Commit 18a4ad9

Browse files
committed
added some aggregation problems
1 parent f74dec8 commit 18a4ad9

5 files changed

+5
-0
lines changed

Aggregations/The Blunder.sql

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT CEIL(AVG(SALARY)-AVG(REPLACE(SALARY, 0 , ''))) FROM EMPLOYEES;

Aggregations/Top Earners.sql

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
select months*salary as e,count(*) from employee group by e order by e desc limit 1;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
select round(sum(lat_n),4) from station where lat_n > 38.7880 and lat_n < 137.2345;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
select round(max(lat_n),4) from station where lat_n < 137.2345;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
select round(sum(lat_n),2), round(sum(long_w),2) from station;

0 commit comments

Comments
 (0)