Lessons › SQL › Chapter 1: Reading data
SQL lesson
SELECT all columns
Use it first on any new table, to see what's in it.
Try this lesson free →Example
See a whole table
SELECT *
FROM productsStep by step
- Starts every query. It means "show me".
SELECT * FROM products - The star means every column, so you see the whole table.
SELECT * FROM products - FROM says which table to look in.
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 →