Lessons › SQL › Chapter 1: Reading data
SQL lesson
SELECT all columns
SELECT * is helpful for learning and quick exploration. In real reporting, analysts often select only the columns they need.
Try this lesson free →Example
Viewing a Full Retail Product Table with SELECT *
SELECT * FROM productsStep by step
- SELECT tells SQL what you want to see.
SELECT - The asterisk symbol means all columns.
SELECT * - FROM tells SQL which table to pull the data from.
SELECT * FROM products
Practice
1. Write a query to show all columns and rows from the orders table.
SELECT * FROM orders2. Write a query to show all columns and rows from the products table.
SELECT * FROM products3. Write a query to show all columns and rows from the customers table.
SELECT * FROM customers4. Write a query to show all columns and rows from the inventory table.
SELECT * FROM inventory5. Write a query to show all columns and rows from the returns table.
SELECT * FROM returnsLearn it by doing. This lesson is a short hands-on level on Bampaa: see it work, then build and write it yourself, with instant feedback.
Try this lesson free →