SQL Fundamentals

Lesson 1 of 6

Introduction to SQL and SELECT

SQL (Structured Query Language) is how you talk to a relational database, data organized into tables made of rows and columns. Almost every application with a database uses SQL under the hood.

Imagine a students table:

idnamexp
1Ada120
2Grace95
3Alan60

Selecting data

SELECT name, xp
FROM students;

SELECT *
FROM students;
  • SELECT lists the columns you want back, or * for every column.
  • FROM says which table to read from.
  • Every statement ends with a semicolon ;.

NOTE

SQL keywords like SELECT and FROM aren't case-sensitive (select works too), but writing them in UPPERCASE is the near-universal convention, it makes queries easier to scan.

📝 SQL Basics Quiz

Passing score: 70%
  1. 1.What does SQL stand for?

  2. 2.The ____ clause specifies which table a query reads from.

  3. 3.SQL keywords like SELECT and FROM are not case-sensitive.