<aside> 📚 Notes from: SQL Ultimate Course by Data With Baraa — PDF 02 (Part 1)

</aside>


SQL Statement

A complete SQL statement is the full block of code you send to the database.

-- Retrieve Customers Data
SELECT
    name,
    LOWER(country)
FROM customers
WHERE country = 'Italy'

Anatomy of a SQL Statement

Comment

Text ignored by the engine — used to document your code.

Clauses

Sections of a SQL statement that each perform a specific function.

Keywords

Reserved words that have a special meaning in SQL.

Functions