Created
January 18, 2019 04:06
-
-
Save mirzalazuardi/11a28e5c9684f5fb524bc2a603ade0a0 to your computer and use it in GitHub Desktop.
SQL #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Students | |
-- Given the following data definition, write a query that returns the number of students whose first name is John. | |
-- TABLE students | |
-- id INTEGER PRIMARY KEY, | |
-- firstName VARCHAR(30) NOT NULL, | |
-- lastName VARCHAR(30) NOT NULL | |
SELECT COUNT(*) AS numOfStudent | |
FROM students | |
WHERE firstName = 'John' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment