Skip to content

Instantly share code, notes, and snippets.

@kenjipm
Last active April 17, 2022 10:36
Show Gist options
  • Save kenjipm/553ab8733d7cb75453f53463e3da9e01 to your computer and use it in GitHub Desktop.
Save kenjipm/553ab8733d7cb75453f53463e3da9e01 to your computer and use it in GitHub Desktop.
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(*) FROM students WHERE firstName = "John";
@michaelobr
Copy link

THANK U SO MUCH

@alimoghanni
Copy link

SELECT COUNT(*) FROM students WHERE firstName = 'John';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment