juniorSQL

What is a SELECT statement?

Updated May 17, 2026

Short answer

SELECT retrieves data from a database table.

Deep explanation

SELECT is used to query specific columns or all columns from a table using filters, sorting, and grouping.

Real-world example

Fetching user emails for a marketing campaign.

Common mistakes

  • Using SELECT * unnecessarily, which reduces performance.

Follow-up questions

  • Why avoid SELECT *?
  • Can SELECT be used without FROM?

More SQL interview questions

View all →