SlideShare uma empresa Scribd logo
1 de 21
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
WHY IS SQL NEEDED FOR DATA SCIENCE?
WHAT IS SQL?
BASICS OF SQL
www.edureka.co
HANDS-ON
INTRODUCTION TO DATA SCIENCE
INTRODUCTION TO DATA SCIENCE
www.edureka.co
Did you know that we're generating more than 2.5 quintillion bytes of data each day? This pace of
data generation is the reason behind the popularity of high-end technologies such as Data Science,
Artificial Intelligence, Machine Learning and so on.
Introduction To Data Science
www.edureka.co
Data Science is the process deriving useful insights from data in order to solve
real-world problems.
WHY IS SQL NEEDED FOR DATA SCIENCE?
www.edureka.co
SQL can be used to store, access and extract massive amounts of data in order to carry out the
whole Data Science process more smoothly.
Why Is SQL Needed For Data Science?
www.edureka.co
Data Science involves extracting, processing, and analysing tons of data. At present what we
need are tools that can be used to store and manage this vast amount of data.
WHAT IS SQL?
www.edureka.co
SQL stands for Structured Query Language is a querying language aimed to manage Relational
Databases.
What Is SQL?
www.edureka.co
SQL programming can be used to perform multiple actions on data such as:
Querying Inserting Updating Deleting Extracting
RDMS is a data management system where data is stored into different tables (columns and rows) and
relations are established among the different data variables by using primary keys and so on.
www.edureka.co
Open Source
Supports large
databases
Customizable
Supports multiple
programming interfaces
www.edureka.co
BASICS OF SQL
www.edureka.co
www.edureka.co
CREATE DATABASE
CREATE TABLE
INSERT INTO
SELECT
UPDATE
DROP TABLE
DELETE
CREATE DATABASE name;
USE name;
Syntax
Function: Creates a new database
• CREATE DATABASE: This command creates a database
• USE: Activate the database
www.edureka.co
CREATE DATABASE
CREATE TABLE
INSERT INTO
SELECT
UPDATE
DROP TABLE
DELETE
CREATE TABLE name (variable1 data_type1,
variable2 data_type2);
Syntax
Function: Creates a new table
• CREATE DATABASE: This command creates a table containing the
data variables.
• Each variable must be defined w.r.t its data type
www.edureka.co
CREATE DATABASE
CREATE TABLE
INSERT INTO
SELECT
UPDATE
DROP TABLE
DELETE
INSERT INTO name VALUES (value1, value2, value3,
vlaue4..);
Syntax
Function: Inserts new data into a database
• INSERT INTO: This command inserts values into the table.
• Remember the values inserted must align with the defined data
types.
www.edureka.co
CREATE DATABASE
CREATE TABLE
INSERT INTO
SELECT
UPDATE
DROP TABLE
DELETE
SELECT * FROM table_name;
Syntax
Function: Extracts data from a database
• SELECT * FROM: This command selects a specified table/column
and extracts it.
• The command can be modified to extract specific data.
www.edureka.co
CREATE DATABASE
CREATE TABLE
INSERT INTO
SELECT
UPDATE
DROP TABLE
DELETE
Syntax
Function: Updates data in a database
• UPDATE: This command allows you to modify any
values/variables stored in the table.
• WHERE: Selects the variable/ value that you want to change
UPDATE table_name SET variable1=‘ ’ WHERE
condition;
www.edureka.co
CREATE DATABASE
CREATE TABLE
INSERT INTO
SELECT
UPDATE
DROP TABLE
DELETE
Syntax
Function: Deletes data from a database
• UPDATE: This command allows you to delete values/ variables from a
table.
• WHERE: Allows you to pose a condition to delete a specific value.
DELETE FROM table WHERE condition;
www.edureka.co
CREATE DATABASE
CREATE TABLE
INSERT INTO
SELECT
UPDATE
DROP TABLE
DELETE
Syntax
Function: Deletes a table
• DROP TABLE: This command is used to delete a table and all rows in
the table
DROP TABLE table_name;
DEMO
www.edureka.co
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
www.edureka.co
www.edureka.co

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Introduction to-sql
Introduction to-sqlIntroduction to-sql
Introduction to-sql
 
Mysql
MysqlMysql
Mysql
 
PySpark Programming | PySpark Concepts with Hands-On | PySpark Training | Edu...
PySpark Programming | PySpark Concepts with Hands-On | PySpark Training | Edu...PySpark Programming | PySpark Concepts with Hands-On | PySpark Training | Edu...
PySpark Programming | PySpark Concepts with Hands-On | PySpark Training | Edu...
 
SQL Queries
SQL QueriesSQL Queries
SQL Queries
 
SQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics CoveredSQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics Covered
 
SQL Joins With Examples | Edureka
SQL Joins With Examples | EdurekaSQL Joins With Examples | Edureka
SQL Joins With Examples | Edureka
 
MySQL Workbench Tutorial | Introduction To MySQL Workbench | MySQL DBA Traini...
MySQL Workbench Tutorial | Introduction To MySQL Workbench | MySQL DBA Traini...MySQL Workbench Tutorial | Introduction To MySQL Workbench | MySQL DBA Traini...
MySQL Workbench Tutorial | Introduction To MySQL Workbench | MySQL DBA Traini...
 
SQL - DML and DDL Commands
SQL - DML and DDL CommandsSQL - DML and DDL Commands
SQL - DML and DDL Commands
 
MYSQL.ppt
MYSQL.pptMYSQL.ppt
MYSQL.ppt
 
Stored procedures
Stored proceduresStored procedures
Stored procedures
 
Good sql server interview_questions
Good sql server interview_questionsGood sql server interview_questions
Good sql server interview_questions
 
MYSQL-Database
MYSQL-DatabaseMYSQL-Database
MYSQL-Database
 
SQL Overview
SQL OverviewSQL Overview
SQL Overview
 
Azure Data Fundamentals DP 900 Full Course
Azure Data Fundamentals DP 900 Full CourseAzure Data Fundamentals DP 900 Full Course
Azure Data Fundamentals DP 900 Full Course
 
SQL for interview
SQL for interviewSQL for interview
SQL for interview
 
1. SQL Basics - Introduction
1. SQL Basics - Introduction1. SQL Basics - Introduction
1. SQL Basics - Introduction
 
Introduction to PostgreSQL
Introduction to PostgreSQLIntroduction to PostgreSQL
Introduction to PostgreSQL
 
Introduction to Mysql
Introduction to MysqlIntroduction to Mysql
Introduction to Mysql
 
Sql loader good example
Sql loader good exampleSql loader good example
Sql loader good example
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 

Semelhante a SQL for Data Science Tutorial | Data Science Tutorial | Edureka

xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
WrushabhShirsat3
 
SQL.pptx for the begineers and good know
SQL.pptx for the begineers and good knowSQL.pptx for the begineers and good know
SQL.pptx for the begineers and good know
PavithSingh
 

Semelhante a SQL for Data Science Tutorial | Data Science Tutorial | Edureka (20)

Reviewing SQL Concepts
Reviewing SQL ConceptsReviewing SQL Concepts
Reviewing SQL Concepts
 
Data base.ppt
Data base.pptData base.ppt
Data base.ppt
 
PostgreSQL Database Slides
PostgreSQL Database SlidesPostgreSQL Database Slides
PostgreSQL Database Slides
 
SQL PPT.pptx
SQL PPT.pptxSQL PPT.pptx
SQL PPT.pptx
 
unit-ii.pptx
unit-ii.pptxunit-ii.pptx
unit-ii.pptx
 
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
 
Getting Started with MySQL I
Getting Started with MySQL IGetting Started with MySQL I
Getting Started with MySQL I
 
DATABASE ADMINSTRATION
DATABASE ADMINSTRATION DATABASE ADMINSTRATION
DATABASE ADMINSTRATION
 
SQL basics.pptx
SQL basics.pptxSQL basics.pptx
SQL basics.pptx
 
SQL.pptx
SQL.pptxSQL.pptx
SQL.pptx
 
MYSQL - PHP Database Connectivity
MYSQL - PHP Database ConnectivityMYSQL - PHP Database Connectivity
MYSQL - PHP Database Connectivity
 
SQLITE Android
SQLITE AndroidSQLITE Android
SQLITE Android
 
Database in Android
Database in AndroidDatabase in Android
Database in Android
 
Sq lite
Sq liteSq lite
Sq lite
 
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slides
 
Stretch db sql server 2016 (sn0028)
Stretch db   sql server 2016 (sn0028)Stretch db   sql server 2016 (sn0028)
Stretch db sql server 2016 (sn0028)
 
SQL.pptx for the begineers and good know
SQL.pptx for the begineers and good knowSQL.pptx for the begineers and good know
SQL.pptx for the begineers and good know
 
Sql in dbms
Sql in dbmsSql in dbms
Sql in dbms
 
Oracle SQL Part1
Oracle SQL Part1Oracle SQL Part1
Oracle SQL Part1
 

Mais de Edureka!

Mais de Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 

Último

Último (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

SQL for Data Science Tutorial | Data Science Tutorial | Edureka

  • 1. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
  • 2. WHY IS SQL NEEDED FOR DATA SCIENCE? WHAT IS SQL? BASICS OF SQL www.edureka.co HANDS-ON INTRODUCTION TO DATA SCIENCE
  • 3. INTRODUCTION TO DATA SCIENCE www.edureka.co
  • 4. Did you know that we're generating more than 2.5 quintillion bytes of data each day? This pace of data generation is the reason behind the popularity of high-end technologies such as Data Science, Artificial Intelligence, Machine Learning and so on. Introduction To Data Science www.edureka.co Data Science is the process deriving useful insights from data in order to solve real-world problems.
  • 5. WHY IS SQL NEEDED FOR DATA SCIENCE? www.edureka.co
  • 6. SQL can be used to store, access and extract massive amounts of data in order to carry out the whole Data Science process more smoothly. Why Is SQL Needed For Data Science? www.edureka.co Data Science involves extracting, processing, and analysing tons of data. At present what we need are tools that can be used to store and manage this vast amount of data.
  • 8. SQL stands for Structured Query Language is a querying language aimed to manage Relational Databases. What Is SQL? www.edureka.co SQL programming can be used to perform multiple actions on data such as: Querying Inserting Updating Deleting Extracting RDMS is a data management system where data is stored into different tables (columns and rows) and relations are established among the different data variables by using primary keys and so on.
  • 12. www.edureka.co CREATE DATABASE CREATE TABLE INSERT INTO SELECT UPDATE DROP TABLE DELETE CREATE DATABASE name; USE name; Syntax Function: Creates a new database • CREATE DATABASE: This command creates a database • USE: Activate the database
  • 13. www.edureka.co CREATE DATABASE CREATE TABLE INSERT INTO SELECT UPDATE DROP TABLE DELETE CREATE TABLE name (variable1 data_type1, variable2 data_type2); Syntax Function: Creates a new table • CREATE DATABASE: This command creates a table containing the data variables. • Each variable must be defined w.r.t its data type
  • 14. www.edureka.co CREATE DATABASE CREATE TABLE INSERT INTO SELECT UPDATE DROP TABLE DELETE INSERT INTO name VALUES (value1, value2, value3, vlaue4..); Syntax Function: Inserts new data into a database • INSERT INTO: This command inserts values into the table. • Remember the values inserted must align with the defined data types.
  • 15. www.edureka.co CREATE DATABASE CREATE TABLE INSERT INTO SELECT UPDATE DROP TABLE DELETE SELECT * FROM table_name; Syntax Function: Extracts data from a database • SELECT * FROM: This command selects a specified table/column and extracts it. • The command can be modified to extract specific data.
  • 16. www.edureka.co CREATE DATABASE CREATE TABLE INSERT INTO SELECT UPDATE DROP TABLE DELETE Syntax Function: Updates data in a database • UPDATE: This command allows you to modify any values/variables stored in the table. • WHERE: Selects the variable/ value that you want to change UPDATE table_name SET variable1=‘ ’ WHERE condition;
  • 17. www.edureka.co CREATE DATABASE CREATE TABLE INSERT INTO SELECT UPDATE DROP TABLE DELETE Syntax Function: Deletes data from a database • UPDATE: This command allows you to delete values/ variables from a table. • WHERE: Allows you to pose a condition to delete a specific value. DELETE FROM table WHERE condition;
  • 18. www.edureka.co CREATE DATABASE CREATE TABLE INSERT INTO SELECT UPDATE DROP TABLE DELETE Syntax Function: Deletes a table • DROP TABLE: This command is used to delete a table and all rows in the table DROP TABLE table_name;
  • 20. Copyright © 2017, edureka and/or its affiliates. All rights reserved. www.edureka.co