DSI Guide - Intro To SQL
DSI Guide - Intro To SQL
DSI Guide - Intro To SQL
DATA SCIENCE
AN INTRODUCTION
Let's start at the top...
country_populations
continent country population
Europe UK 67,220,000
shared Europe Germany 83,240,000
column North America USA 329,500,000
continent_areas
shared
column
continent area
Europe UK country_temps
Europe Germany country max_temp
USA 56.7
... ...
database
What can we do?
A good way to think about what we can using SQL is with the
acronym C.R.U.D
Create Delete
C.R.U.D
Read
Update
While this might seem like a slightly informal acronym it’s
actually a really good way to describe the core functions or
operations that can be performed on a relational database...
R
READ: This is mainly about querying the data,
so essentially grabbing the relevant rows
and columns from tables that will provide us
with the information we need
U
UPDATE: We can add more rows & columns to
tables that already exist, as well as modify
records within tables
D
DELETE: This is kinda what you’d expect - we
can delete specific rows and columns, or we
can delete whole tables, schemas and even
databases!
SQL in Data Science 1
While all of these C.R.U.D processes can be undertaken
using SQL - Data Scientists and Data Analysts will typically
spend most of their time in the "Read" area...
C.R.U.D
Read
In a lot of companies the management of the databases
themselves (so the Create, Update, and Delete functions)
are often taken care of by a specific database team, or by
Data Engineers.
player_details
first_name last_name sport net_worth
SELECT
first_name, We use the FROM
last_name statement to specify
FROM the name of the table
player_details that this information
resides in
WHERE
net_worth > $250m;
WHERE
net_worth > $250m;
Voila! Our shortlist of
potential spokespeople
for our new range of
watches!
What else can we do?
Our example covered a very simple query - there is much,
much more flexibility with SQL that means we can do a
whole lot more in terms of processing and manipulating
data, such as...
A curriculum based on
input from hundreds of
leaders, hiring managers,
and recruiters
https://data-science-infinity.teachable.com
BUILD YOUR
PORTFOLIO
https://data-science-infinity.teachable.com
EARN THE
CERTIFICATION
https://data-science-infinity.teachable.com
LAND AN
AMAZING ROLE
https://data-science-infinity.teachable.com
Taught by former Amazon
& Sony PlayStation Data
Scientist Andrew Jones
What do DSI
students say?
"I had over 40 interviews without an offer.
After DSI I quickly got 7 offers including
one at KPMG and my amazing new role
at Deloitte!"
- Ritesh
- Keith
"I'm now at University, and my Data
Science related subjects are a piece of
cake after completing this course!
https://data-science-infinity.teachable.com