5 Basic SELECT Statement Queries in SQL

Share this & earn $10
Becoming a Data Scientist
Published at : 20 Oct 2021
12720 views
297
4

Here are 5 Basic SELECT Statement Queries in SQL so you can begin pulling the information you need out of your database and tables!

Query demos:
1) Select ALL from a table: SELECT * FROM table
2) Select certain columns from a table: SELECT column1, column2, column3 FROM table
3) Select all the unique or distinct rows in a column from a table. Another way to think of it is "removing duplicates": SELECT DISTINCT column FROM table
4) Change the displayed name of your columns by adding Aliases: SELECT column1 AS alias1, column2 AS alias 2 FROM table
5) Add arithmetic in your SELECT statement by using mathematical expressions: SELECT quantity*price AS total_price FROM table

Get the Northwind Database: https://www.youtube.com/watch?v=nbIicI7K6Kk

Support the Channel:
1) Subscribe: https://www.becomingads.com/o/youtube
2) DataCamp: https://www.becomingads.com/o/datacamp
3) Udacity: https://www.becomingads.com/o/udacity

becoming a data scientistbecomingads.comdata science

Net Neutrality - SNL

Net Neutrality - SNL

This Game Does NOT Allow You to Win

This Game Does NOT Allow You to Win

My Talking Tom - Tom Little and large Walkthrough 2

My Talking Tom - Tom Little and large Walkthrough 2

27 Quick And Easy Crafts To Make At Home

27 Quick And Easy Crafts To Make At Home

NEW Hope HB130 | A Versatile Hand-built UK-made All-rounder

NEW Hope HB130 | A Versatile Hand-built UK-made All-rounder

I started A Joke lyrics The Bee Gees

I started A Joke lyrics The Bee Gees

Lots and Lots of People

Lots and Lots of People

DC CIVICS CLASS - EDWARDS AND ALTER

DC CIVICS CLASS - EDWARDS AND ALTER

How To Earn 3500$ Per Post (Not Clickbait)

How To Earn 3500$ Per Post (Not Clickbait)

ESTABLISHING SHOTS: Why they are important and how to film them!

ESTABLISHING SHOTS: Why they are important and how to film them!

Maroon 5 - Wake Up Call (Official Music Video)

Maroon 5 - Wake Up Call (Official Music Video)

Ilke Toygur | EUI, Revisiting and Extending Peter Mair: The Impact of Europe on (...)

Ilke Toygur | EUI, Revisiting and Extending Peter Mair: The Impact of Europe on (...)

Very Unlikely - Jimmy Savile & The Establishment 1962

Very Unlikely - Jimmy Savile & The Establishment 1962

System Of A Down - Toxicity (Official HD Video)

System Of A Down - Toxicity (Official HD Video)

Justin Bieber - Company (Official Music Video)

Justin Bieber - Company (Official Music Video)

GASHI - Safety (Lyric Video) ft. DJ Snake

GASHI - Safety (Lyric Video) ft. DJ Snake

Sam Smith - Lay Me Down (Official Video)

Sam Smith - Lay Me Down (Official Video)

EVS: Our school | Rooms in a School

EVS: Our school | Rooms in a School

How Do We Break The Habit Of Excessive Thinking?

How Do We Break The Habit Of Excessive Thinking?

That's Why We Haven't Met Any Aliens Yet!

That's Why We Haven't Met Any Aliens Yet!

How to Use MAKE SURE in English

How to Use MAKE SURE in English

Gary Allan - It Would Be You (Official Music Video)

Gary Allan - It Would Be You (Official Music Video)

Hold On - Unknown Chapters (LYRICS)

Hold On - Unknown Chapters (LYRICS)

Keeping Apart

Keeping Apart

Members of the Family in English

Members of the Family in English

How to Choose Lighting for Your Home - Size and Style | Julie Khuu

How to Choose Lighting for Your Home - Size and Style | Julie Khuu

MAGIC! - No Way No (Official Video)

MAGIC! - No Way No (Official Video)

TikTok's "Couch Guy" Body Language Analysis | What Can REALLY Be Seen Here?

TikTok's "Couch Guy" Body Language Analysis | What Can REALLY Be Seen Here?

What’s the Difference Between Web Hosting and Domain Hosting?

What’s the Difference Between Web Hosting and Domain Hosting?

How to use a snorkel for diving down underwater

How to use a snorkel for diving down underwater

Facebook Workplace Tutorial

Facebook Workplace Tutorial

AJR - The Good Part (Official Video)

AJR - The Good Part (Official Video)

MOMO is DEFINITELY not appropriate for this Kid

MOMO is DEFINITELY not appropriate for this Kid

Brent Faiyaz - Trust

Brent Faiyaz - Trust

A Mentalist Guide to Social Interaction | Tom Indigo | TEDxBismarck

A Mentalist Guide to Social Interaction | Tom Indigo | TEDxBismarck

Falling In Reverse - "Drugs"

Falling In Reverse - "Drugs"

Come Out

Come Out

Destruction of the Environment as a Consequence of Overpopulation

Destruction of the Environment as a Consequence of Overpopulation

A-Talk: LISÄÄ RAISKAUKSIA JA ULOS YK:STA (Feministipellet)

A-Talk: LISÄÄ RAISKAUKSIA JA ULOS YK:STA (Feministipellet)

Punch Brothers - "Movement and Location" [Official Video]

Punch Brothers - "Movement and Location" [Official Video]

Somehow.

Somehow.

4 Principles of Marketing Strategy | Brian Tracy

4 Principles of Marketing Strategy | Brian Tracy

How To Master Any Skill (Become Top 1%)

How To Master Any Skill (Become Top 1%)

Introduction to Envisage

Introduction to Envisage

TOYS IN SCHOOL? || Sneak Toys And Stress Relieves Into Class | Fun School Supplies By 123 GO! SERIES

TOYS IN SCHOOL? || Sneak Toys And Stress Relieves Into Class | Fun School Supplies By 123 GO! SERIES

The Concerns With Cobalt | January 30, 2019

The Concerns With Cobalt | January 30, 2019

Look for Butterfly's Babies | Super Panda Rescue Team | BabyBus Cartoon

Look for Butterfly's Babies | Super Panda Rescue Team | BabyBus Cartoon

Mother and Father - Bukhchuluun Ganburged

Mother and Father - Bukhchuluun Ganburged

World's 10 Most Prosperous Countries

World's 10 Most Prosperous Countries