Master Structured Query Language to work with databases, retrieve data, and manage structured records.
Store, retrieve, and organize structured information efficiently.
Used in office systems, websites, analytics, and data roles worldwide.
Throughout this tutorial, we'll use a sample students table:
| id | name | age | course | grade |
|---|---|---|---|---|
| 1 | Aarav Sharma | 21 | Computer Science | A |
| 2 | Priya Singh | 20 | Mathematics | B+ |
| 3 | Rahul Verma | 22 | Physics | A- |
| 4 | Neha Gupta | 19 | Computer Science | B |
| 5 | Vikram Patel | 23 | Chemistry | C+ |
SQL statements are commands sent to a database. Try it yourself!
SELECT retrieves data from a table. Try different queries!
WHERE filters records using conditions. Try different filters!
ORDER BY sorts query results. Try sorting!
INSERT INTO adds new records to a table.
UPDATE changes existing records. Always use WHERE to specify which records to update!
DELETE removes records from a table. Use with caution!
Test your understanding of SQL fundamentals.
Track completion of this SQL module.