Skip to content

Commit ac025d8

Browse files
committed
Solutions to SQL Basic Select section
1 parent db2e7e1 commit ac025d8

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SELECT CITY, STATE
2+
FROM STATION;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SELECT DISTINCT CITY
2+
FROM STATION
3+
WHERE MOD(ID, 2) = 0;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SELECT COUNT(CITY) - COUNT(DISTINCT CITY)
2+
FROM STATION;

0 commit comments

Comments
 (0)