Skip to content

Instantly share code, notes, and snippets.

@elkhan
Created November 28, 2020 20:55
Show Gist options
  • Save elkhan/76491dbf646ad5757cd6eb30263c0cc3 to your computer and use it in GitHub Desktop.
Save elkhan/76491dbf646ad5757cd6eb30263c0cc3 to your computer and use it in GitHub Desktop.
UdemySQLbootcamp
SELECT COUNT(amount) FROM payment WHERE amount > 5.00;
SELECT COUNT(*) FROM payment WHERE amount > 5.00;
SELECT COUNT(*) FROM actor WHERE first_name LIKE 'P%';
SELECT DISTINCT(COUNT(district)) FROM address;
SELECT DISTINCT(district) FROM address;
SELECT COUNT(*) FROM film WHERE rating = 'R' AND replacement_cost BETWEEN 5 AND 15;
SELECT COUNT(*) FROM film WHERE title LIKE '%Truman%';
SELECT title FROM film WHERE title LIKE '%Truman%';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment