Available Tables

Next →

Welcome to Basic SQL Syntax

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.

The Anatomy of a Simple SQL Query

At its core, a basic SQL query follows this structure:

SELECT column1, column2  FROM table_name;

Here’s what each part means:

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.