Loading Data Driven Insights
Preparing your learning content.
Preparing your learning content.
A beginner-friendly guide to using SELECT and FROM together to read specific columns from a table in SQL Server.
On this page
Jump to a lesson section
SELECT and FROM are commonly used together when reading stored table data.
The basic structure is simple: list the column names after SELECT, then write the table name after FROM.
SELECT
column_name
FROM table_name;
Here is a practical example using an Employees table.
SELECT
employee_name,
department
FROM Employees;
employee_name and department columns from the Employees table.We will use this Employees table to understand how SELECT and FROM work together.
This query selects only the columns listed after SELECT.
SELECT
employee_name,
department
FROM Employees;
SELECT * returns every column from the table.
SELECT *
FROM Employees;
This is useful for quick checking, but in real projects it is usually better to list only the columns you need.
SELECT *
FROM Employees;
SELECT
employee_name,
salary
FROM Employees;
SELECT *.SQL Roadmap Progress
Topic 17 of 111
15% complete
Next in SQL Roadmap
Continue with the next SQL topic in the recommended roadmap order.
Continue learning →