Sponsored
GitHubTabLearn by Projects — Programming tutorials for C, C#, Python, Javascript, Typescript, React, Go, HTML/CSS, Java, PHP and more
Show repository

Selecting Data

Posted on Oct 5, 2022

The SELECT statement is the most commonly used SQL command. It allows you to retrieve data from one or more tables in your database.

Basic SELECT Syntax

SELECT column1, column2
FROM table_name;

Selecting All Columns

To select all columns from a table, use the asterisk (*):

SELECT * FROM customers;

Filtering Results

Use the WHERE clause to filter your results:

SELECT * FROM books
WHERE price > 30;

Practice these queries to become proficient in data retrieval!

©2026 SQLZap - Learn SQL Interactively

Twitter