Understanding SQL starts with its fundamental structure. In this level, you'll learn how a basic SQL query is constructed — from the SELECT
statement to specifying the table with FROM
. You'll also get familiar with how to read data from a table using simple queries.
At its core, a basic SQL query follows this structure:
SELECT column1, column2 FROM table_name;
Here’s what each part means:
SELECT
tells the database which columns you want to retrieve.FROM
specifies the table where the data lives.For example, if you want to select all student names from a table called students
, your query would look like this:
SELECT name FROM students;
This simple structure is the foundation for nearly every SQL query. Practice it well — more complex queries build directly on this format.