Back to INTRODUCTION TO SQL & DATABASES

BASIC SELECT

Understand basic `SELECT` and `SELECT *`

2 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.

Ready to continue?

Mark this lesson as complete when you're ready to proceed.

Key moments

  1. SELECT statement introductionThe SELECT statement is introduced as the primary tool for picking data out of a database.
  2. Specific column exampleA simple query is presented to grab the CustomerName and City columns from the Customers table.
  3. General syntax definedThe general structure of the SELECT column list FROM table_name syntax is defined.
  4. Executing the demo queryThe example query selecting CustomerName and City is executed against the sample Customers table.
  5. Wildcard selectionThe asterisk wildcard is introduced as a way to select all columns in the table.
  6. Lesson summaryThe basic functionality of the SQL SELECT statement is summarized as easy to use.
PDF notes

Frequently asked questions

What is the purpose of the semicolon at the end of the query?

The semicolon (;) is a statement terminator. It signals to the database that the current SQL command is complete and ready to be executed.

Do I need to capitalize SELECT and FROM?

SQL keywords are generally case-insensitive, meaning the query will run either way. However, capitalization is standard practice for readability.

Can I select columns from multiple tables at once?

Yes, but retrieving data from multiple tables requires using JOINs. This basic lesson focuses only on selecting data from a single table.