NEW
Font size
WorksheetsSQLite - Writing Queries
Total questions: 9
Worksheet time: 8mins
Write the SQL command that will return all information from movies that have genre of romances and imdb_rating over 6.
SELECT * FROM movies WHERE genre = ‘romance’ AND imdb_rating > 6;
SELECT * FROM movies WHERE genre = ‘romance’ AND imdb_rating < 6;
SELECT imdb_rating, name FROM movie WHERE genre = ‘romance’ AND imdb_rating > 6;
SELECT * FROM movies WHERE genre = romance and imdb_rating < 6;
Return 2 movies where the movie name include the word power.
SELECT * FROM movies WHERE name = ‘%power%’ LIMIT 2;
SELECT * FROM movies WHERE genre LIKE ‘%power%’ LIMIT 2;
SELECT * FROM movies WHERE name LIKE ‘%power%’ LIMIT 2;
SELECT * FROM games WHERE name LIKE ‘%power%’ LIMIT 2;
SQLite is a _____
NoSQL database
Distributed database
Relational database
Operational database
SQLite is case insensitive.
TRUE
FALSE
Which of the following will be returned if the query is:
SELECT * from Customer
where CustFName LIKE ‘Ta_g%';
Tung
Tammg
Tang
Tarngie
