Learn SQL Online for Free
Structured Query Language (SQL) is the standard language for dealing with Relational Databases. Whether you want to become a Data Analyst, a Backend Developer, or just organize your data, SQL is an essential skill.
1. The SELECT Statement
The most basic command is SELECT. It retrieves data from a database.
SELECT name, price FROM products;
You can also use * to select all columns.
2. Filtering with WHERE
Use the WHERE clause to filter records.
SELECT * FROM customers WHERE city = 'New York';
3. Ordering Data
Sort your results using ORDER BY.
SELECT * FROM products ORDER BY price DESC;