Focus video player for keyboard shortcuts
Auto
- 720p
- 540p
- 360p
1.00x
cc
- 0.50x
- 0.75x
- 1.00x
- 1.25x
- 1.50x
- 1.75x
- 2.00x
We hope you enjoyed this lesson.
Cool lesson, huh? Share it with your friends
About this lesson
Here we will start to write SQL statements and queries, starting with basic SELECT statements
Exercise files
Download this lesson’s related exercise files.
Simple SELECT Statements58.7 KB Simple SELECT Statements - Solution
58.9 KB
Quick reference
Simple SELECT Statements
Select statements are the main structure of SQL
When to use
Anytime you want to use SQL, you'll likely use a Select Statement.
Instructions
Select statements select data from our database to display.
- To use T-SQL in SSMS, right click on our table in the object explorer, and choose "Select Top 1000 Rows"
- Type in your SQL. To run your SQL Commands, click the Execute button.
- The select statement is the following:
SELECT [COLUMN NAME 1], [COLUMN NAME 2], [COLUMN NAME 3]
FROM [DATABASE NAME], [DATABASE TABLE]
Hints & tips
- To use T-SQL right click on our table in the object explorer, and choose "Select Top 1000 Rows"
- To run your SQL Commands, click the Execute button.
Lesson notes are only available for subscribers.