SlideShare a Scribd company logo
1 of 18
SQL : Day 1
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
Contents
▪ Database Management System (DBMS) - Definition and importance
▪ Introduction to Structured Query Language (SQL)
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
SQL: Structured Query Language
▪ SQL (Structured Query Language): Standard language for
interacting with relational databases
▪ Key characteristics:
▪ Declarative language
▪ Uses English-like syntax
▪ Supports data definition, manipulation, and control
© Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
SQL: Basics
▪ SQL Statements:
▪ Data Definition Language (DDL): CREATE, ALTER, DROP
▪ Data Manipulation Language (DML): SELECT, INSERT, UPDATE, DELETE
▪ Data Control Language (DCL): GRANT, REVOKE
▪ SQL Queries:
▪ SELECT statement: Retrieves data from a database table
▪ Example: SELECT * FROM Customers WHERE Country = 'USA';
SQL: SQL Database Operations
Creating Database and Tables:
• CREATE DATABASE database_name;
• CREATE TABLE table_name (column1 datatype, column2 datatype, ...);
Inserting Data:
• INSERT INTO table_name (column1, column2, ...) VALUES (value1,
value2, ...);
Updating Data:
• UPDATE table_name SET column_name = new_value WHERE
condition;
Deleting Data:
• DELETE FROM table_name WHERE condition;
SQL: SQL Database Operations
Joins:
Combine rows from multiple tables based on related columns
Types: INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN
Aggregation Functions:
Perform calculations on groups of rows
Examples: SUM, AVG, COUNT, MAX, MIN
Constraints:
Rules applied to columns to enforce data integrity
Examples: PRIMARY KEY, FOREIGN KEY, NOT NULL
Summary
• Database Management System (DBMS) is essential for efficient data
management.
• SQL is a powerful language for interacting with relational databases.
• Understanding DBMS and SQL enables effective data storage, retrieval, and
manipulation.
Questions …Any?
Day 1 SQL.pptx

More Related Content

Similar to Day 1 SQL.pptx

xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
WrushabhShirsat3
 

Similar to Day 1 SQL.pptx (20)

SQL for interview
SQL for interviewSQL for interview
SQL for interview
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slides
 
Module02
Module02Module02
Module02
 
Data base
Data baseData base
Data base
 
unit-ii.pptx
unit-ii.pptxunit-ii.pptx
unit-ii.pptx
 
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
 
SQL-Server Database.pdf
SQL-Server Database.pdfSQL-Server Database.pdf
SQL-Server Database.pdf
 
SQL Server Developer Course Online Training
SQL Server Developer Course Online TrainingSQL Server Developer Course Online Training
SQL Server Developer Course Online Training
 
sql ppt.pptx
sql ppt.pptxsql ppt.pptx
sql ppt.pptx
 
SQL for Data Analytics: Mastering Queries and Reporting with Training
SQL for Data Analytics: Mastering Queries and Reporting with TrainingSQL for Data Analytics: Mastering Queries and Reporting with Training
SQL for Data Analytics: Mastering Queries and Reporting with Training
 
SQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics CoveredSQL Complete Tutorial. All Topics Covered
SQL Complete Tutorial. All Topics Covered
 
DBMS unit-3.pdf
DBMS unit-3.pdfDBMS unit-3.pdf
DBMS unit-3.pdf
 
Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332
 
SQL DBA LIVE Online Training
SQL DBA LIVE Online TrainingSQL DBA LIVE Online Training
SQL DBA LIVE Online Training
 
Introduction to mysql part 1
Introduction to mysql part 1Introduction to mysql part 1
Introduction to mysql part 1
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Structured Query Language
Structured Query LanguageStructured Query Language
Structured Query Language
 
Oracle SQL Part1
Oracle SQL Part1Oracle SQL Part1
Oracle SQL Part1
 
Dbms presentaion
Dbms presentaionDbms presentaion
Dbms presentaion
 

Recently uploaded

TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
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...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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
 

Day 1 SQL.pptx

  • 2. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved. Contents ▪ Database Management System (DBMS) - Definition and importance ▪ Introduction to Structured Query Language (SQL)
  • 3. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
  • 4. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
  • 5. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
  • 6. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
  • 7. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
  • 8. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
  • 9. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
  • 10. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
  • 11. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved.
  • 12. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved. SQL: Structured Query Language ▪ SQL (Structured Query Language): Standard language for interacting with relational databases ▪ Key characteristics: ▪ Declarative language ▪ Uses English-like syntax ▪ Supports data definition, manipulation, and control
  • 13. © Brain4ce Education Solutions Pvt. Ltd. All rights reserved. SQL: Basics ▪ SQL Statements: ▪ Data Definition Language (DDL): CREATE, ALTER, DROP ▪ Data Manipulation Language (DML): SELECT, INSERT, UPDATE, DELETE ▪ Data Control Language (DCL): GRANT, REVOKE ▪ SQL Queries: ▪ SELECT statement: Retrieves data from a database table ▪ Example: SELECT * FROM Customers WHERE Country = 'USA';
  • 14. SQL: SQL Database Operations Creating Database and Tables: • CREATE DATABASE database_name; • CREATE TABLE table_name (column1 datatype, column2 datatype, ...); Inserting Data: • INSERT INTO table_name (column1, column2, ...) VALUES (value1, value2, ...); Updating Data: • UPDATE table_name SET column_name = new_value WHERE condition; Deleting Data: • DELETE FROM table_name WHERE condition;
  • 15. SQL: SQL Database Operations Joins: Combine rows from multiple tables based on related columns Types: INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN Aggregation Functions: Perform calculations on groups of rows Examples: SUM, AVG, COUNT, MAX, MIN Constraints: Rules applied to columns to enforce data integrity Examples: PRIMARY KEY, FOREIGN KEY, NOT NULL
  • 16. Summary • Database Management System (DBMS) is essential for efficient data management. • SQL is a powerful language for interacting with relational databases. • Understanding DBMS and SQL enables effective data storage, retrieval, and manipulation.