Skip to main content

Exam 1: Basic SELECT

Difficulty: Beginner

Topics covered: SELECT, FROM, SELECT *, column aliases

Write a SQL query that satisfies each prompt, then click Submit to check your answer.


Question 1

Retrieve all columns from the customers table.

⌘ / Ctrl + Enter to run

Question 2

Retrieve only the name and email columns from the customers table.

⌘ / Ctrl + Enter to run

Question 3

Retrieve the name, category, and price columns from the products table.

⌘ / Ctrl + Enter to run

Question 4

Retrieve the order_id, order_date, and total_amount columns from the orders table.

⌘ / Ctrl + Enter to run

Question 5

Retrieve all columns from the products table, but alias name as product_name and price as unit_price.

⌘ / Ctrl + Enter to run
Donate to this project