Platform: SQLBolt
Lesson: Introduction to SELECT Queries
Problem: Retrieve the title of each film from the movies
table.
Solution:
SELECT Title
FROM movies;
Problem: Retrieve the director of each film from the movies
table.
Solution:
SELECT Director
FROM movies;
Problem: Retrieve the title and director of each film from the movies
table.
Solution:
SELECT Title, Director
FROM movies;
Problem: Retrieve the title and year of each film from the movies
table.
Solution:
SELECT Title, Director
FROM movies;
Problem: Retrieve all information of each film from the movies
table.
Solution:
SELECT *
FROM movies;
📝 Key Learnings:
Basic usage of SELECT
Selecting multiple columns with commas
Using * to select all columns