SQL Tutorial

SQL Syntax

SQL Syntax

Every SQL program has rules for how statements are written and executed.

  • Follow SQL syntax rules for statements and blocks
  • Use comments to document code
  • Run examples in the Try it editor

Example

SELECT first_name, last_name FROM students;
Try it Yourself
Run this SQL example in your local environment or course sandbox.