SlideShare a Scribd company logo
Ahmad Iqbal (09)
Amir Mazhar (65)
Kashif Tangra (42)
Usman Ghani (51)
Presented To Sir Zubair Malik
 Structure Query Language is a computer
language for storing manipulating and
retrieving data stored in Relational Data Base.
 The SQL is an standardized language for
relational database system.
 MySQL , MS Access, Oracle servers use SQL as
a standard language of database
 SQL was invented in 1970. by IBM
(International Business Machine).
 The initial version of SQL is known as SEQUEL,
(structured query language).
 The SQL is developed to manipulate and
retrieve stored data in relational database
management system.
 There are fewer commands through which the
structure query language is controlled or
operated. These Commands are as following:
 Data Definition Language (DDL)
 Data Manipulation Language (DML)
 Data Control Language (DCL)
 The Data Definition Language is a standard
that defines the different structure in a
database.
 Simply we can say that DDL can define the
behavior of a database
 The DDL not just only define the behavior of
database, it can also be modified through
DDL.
 There are few commands for DDL of a
Database, which are following:
 Create- is used to create the database or its objects.
 Drop- is used to delete objects from the database.
 Truncate-is used to remove all records from a table
 Comment-is used to add comments to the data
dictionary.
 Rename-is used to rename an object existing in
the database.
 The DML is deals with the manipulation of
data within the database such as:
 Select- is used to retrieve data from the a database.
 Insert- is used to insert data into a table.
 Update-is used to update existing data within a table.
 Delete-is used to delete records from a database table.
 Syntax.
 SELECT * FROM TABLE;
 Example
 SELECT StudentName,
RollNo FROM StudentID;
 Syntax
 INSERT INTO table_name (column1, column
2, column3, ...)
VALUES (value1, value2, value3, ...);
 Example
 INSERT INTO table_name (Name, Class, Roll
NO)
VALUES (Hassan, BS-IT, 71,);
 Syntax
 UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
 Example
 UPDATE StudentID
SET StudentName=‘Aamir’ WHERE condition;
StudentID=1
 Syntax
 DELETE FROM table_name;
 Example
 DELETE FROM StudentID;
 Syntax
 DELETE FROM table_name WHERE condition;
 Example
 DELETE FROM StudentID WHERE StudentName
=‘Hassan';
 The (DCL) is based on two command, GRANT
command and REVOKE command, these
commands deals with the rights permission
controls of the database system.
 GRANT-gives user’s access permissions to database.
 REVOKE-withdraw user’s access permissions given by
using the GRANT command.
 Syntax
 GRANT privilege_name
ON object_name
TO {user_name |PUBLIC |role_name}
[WITH GRANT OPTION];
 Syntax
 REVOKE privilege_name
ON object_name
FROM {user_name |PUBLIC |role_name}
 An aggregate function allows you to
perform a calculation on a set of values to
return a single scalar value.
 Some aggregate functions.
 AVG-calculates the average of a set of values.
 COUNT-counts rows in a specified table or view.
 MIN- gets the minimum value in a set of values.
 MAX- gets the maximum value in a set of values.
 SUM-calculates the sum of values.
Data Ware Housing through SQL concept

More Related Content

PPTX
DDL And DML
pnp @in
 
PPTX
Data Definition and Data Manipulation Language-DDL & DML
Md. Selim Hossain
 
PPSX
IM02: Database Language
Kelvin Chan
 
PDF
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
eVideoTuition
 
PPTX
An intoduction to sql and its components
Monika Jain DAIMSR
 
PPTX
SQL
Rajesh-QA
 
PPTX
Data definition language
VENNILAV6
 
DDL And DML
pnp @in
 
Data Definition and Data Manipulation Language-DDL & DML
Md. Selim Hossain
 
IM02: Database Language
Kelvin Chan
 
Oracle/SQL For Beginners - DDL | DML | DCL | TCL - Quick Learning
eVideoTuition
 
An intoduction to sql and its components
Monika Jain DAIMSR
 
SQL
Rajesh-QA
 
Data definition language
VENNILAV6
 

What's hot (20)

PPTX
DBMS Notes: DDL DML DCL
Sreedhar Chowdam
 
PDF
Web app development_my_sql_08
Hassen Poreya
 
PPTX
sql statements & joins
Safva AP
 
PPTX
Database Basics and MySQL
Jerome Locson
 
PPTX
SQL: Structured Query Language
Rohit Bisht
 
PPTX
Sql and Sql commands
Knowledge Center Computer
 
PPTX
Group Members
Farhan Shahani
 
PPTX
Sql – pocket guide
Santhosh Kumar
 
PPTX
Ddl vs dml
shahbazalishahbaz
 
PPTX
Introduction to database
Pongsakorn U-chupala
 
PDF
Database Fundamental
Gong Haibing
 
PPTX
Microsoft Tech Club Cairo University "MSTC'16 Builders and Developers " Sessi...
Wagdy Mohamed
 
PPTX
Oracle Database DML DDL and TCL
Abdul Rehman
 
PPTX
Structured Query Language
Surkhab Shelly
 
PPTX
SQLSlide
OrtonRandyandy34534
 
PPTX
SQL
Bhandari Nawaraj
 
PPTX
DML DATA MAINUPULATION LANGUAGE
Abrar ali
 
ODP
Sql lite android
Dushyant Nasit
 
PPT
SQLITE Android
Sourabh Sahu
 
DBMS Notes: DDL DML DCL
Sreedhar Chowdam
 
Web app development_my_sql_08
Hassen Poreya
 
sql statements & joins
Safva AP
 
Database Basics and MySQL
Jerome Locson
 
SQL: Structured Query Language
Rohit Bisht
 
Sql and Sql commands
Knowledge Center Computer
 
Group Members
Farhan Shahani
 
Sql – pocket guide
Santhosh Kumar
 
Ddl vs dml
shahbazalishahbaz
 
Introduction to database
Pongsakorn U-chupala
 
Database Fundamental
Gong Haibing
 
Microsoft Tech Club Cairo University "MSTC'16 Builders and Developers " Sessi...
Wagdy Mohamed
 
Oracle Database DML DDL and TCL
Abdul Rehman
 
Structured Query Language
Surkhab Shelly
 
DML DATA MAINUPULATION LANGUAGE
Abrar ali
 
Sql lite android
Dushyant Nasit
 
SQLITE Android
Sourabh Sahu
 
Ad

Similar to Data Ware Housing through SQL concept (20)

PPT
Sql Commands_Dr.R.Shalini.ppt
DrRShaliniVISTAS
 
PDF
SQL_NOTES.pdf
AnshumanDwivedi14
 
PPTX
BASIC_OF_DATABASE_PPT__new[1].pptx
NiyatiMandaliya
 
PDF
Lecture on DBMS & MySQL.pdf v. C. .
MayankSinghRawat6
 
PPTX
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
EliasPetros
 
PPTX
Structured query language
Rashid Ansari
 
PPTX
BASIC OF DATABASE PPT new.pptx
NiyatiMandaliya
 
DOCX
Oracle 11g SQL Overview
Prathap Narayanappa
 
PPTX
SQL2.pptx
RareDeath
 
DOCX
COMPUTERS SQL
Rc Os
 
PDF
Sql smart reference_by_prasad
paddu123
 
PDF
Sql smart reference_by_prasad
paddu123
 
PPTX
Database models and DBMS languages
DivyaKS12
 
DOC
Oracle sql material
prathap kumar
 
PPTX
DBMS: Week 05 - Introduction to SQL Query
RashidFaridChishti
 
PPTX
RDBMS Lab-Introduction.pptx A relational database management system (RDBMS) i...
mads9566966
 
PDF
SQL for data scientist And data analysist Advanced
swethasetty5
 
PPTX
Database Languages.pptx
MuhammadFarhan858304
 
PPTX
lovely
love0323
 
PPTX
SQL OVERVIEW for a new introduced student.pptx
JosephNhlane
 
Sql Commands_Dr.R.Shalini.ppt
DrRShaliniVISTAS
 
SQL_NOTES.pdf
AnshumanDwivedi14
 
BASIC_OF_DATABASE_PPT__new[1].pptx
NiyatiMandaliya
 
Lecture on DBMS & MySQL.pdf v. C. .
MayankSinghRawat6
 
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
EliasPetros
 
Structured query language
Rashid Ansari
 
BASIC OF DATABASE PPT new.pptx
NiyatiMandaliya
 
Oracle 11g SQL Overview
Prathap Narayanappa
 
SQL2.pptx
RareDeath
 
COMPUTERS SQL
Rc Os
 
Sql smart reference_by_prasad
paddu123
 
Sql smart reference_by_prasad
paddu123
 
Database models and DBMS languages
DivyaKS12
 
Oracle sql material
prathap kumar
 
DBMS: Week 05 - Introduction to SQL Query
RashidFaridChishti
 
RDBMS Lab-Introduction.pptx A relational database management system (RDBMS) i...
mads9566966
 
SQL for data scientist And data analysist Advanced
swethasetty5
 
Database Languages.pptx
MuhammadFarhan858304
 
lovely
love0323
 
SQL OVERVIEW for a new introduced student.pptx
JosephNhlane
 
Ad

Recently uploaded (20)

PDF
CH1-MODEL-BUILDING-v2017.1-APR27-2017.pdf
jcc00023con
 
PPTX
1intro to AI.pptx AI components & composition
ssuserb993e5
 
PDF
TCP_IP for Programmers ------ slides.pdf
Souhailsouhail5
 
PPTX
Presentation1.pptxvhhh. H ycycyyccycycvvv
ItratBatool16
 
PDF
Mastering Financial Analysis Materials.pdf
SalamiAbdullahi
 
PDF
Data_Cleaning_Infographic_Series_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
PPTX
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
abhinavmemories2026
 
PDF
345_IT infrastructure for business management.pdf
LEANHTRAN4
 
PDF
CH2-MODEL-SETUP-v2017.1-JC-APR27-2017.pdf
jcc00023con
 
PPTX
GR3-PPTFINAL (1).pptx 0.91 MbHIHUHUGG,HJGH
DarylArellaga1
 
PDF
1 Simple and Compound Interest_953c061c981ff8640f0b8e733b245589.pdf
JaexczJol060205
 
PPTX
Extract Transformation Load (3) (1).pptx
revathi148366
 
PDF
Taxes Foundatisdcsdcsdon Certificate.pdf
PratyushPrem2
 
PPTX
Introduction-to-Python-Programming-Language (1).pptx
dhyeysapariya
 
PPTX
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
PDF
oop_java (1) of ice or cse or eee ic.pdf
sabiquntoufiqlabonno
 
PPTX
Analysis of Employee_Attrition_Presentation.pptx
AdawuRedeemer
 
PDF
Company Profile 2023 PT. ZEKON INDONESIA.pdf
hendranofriadi26
 
PPTX
Introduction to Data Analytics and Data Science
KavithaCIT
 
CH1-MODEL-BUILDING-v2017.1-APR27-2017.pdf
jcc00023con
 
1intro to AI.pptx AI components & composition
ssuserb993e5
 
TCP_IP for Programmers ------ slides.pdf
Souhailsouhail5
 
Presentation1.pptxvhhh. H ycycyyccycycvvv
ItratBatool16
 
Mastering Financial Analysis Materials.pdf
SalamiAbdullahi
 
Data_Cleaning_Infographic_Series_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
abhinavmemories2026
 
345_IT infrastructure for business management.pdf
LEANHTRAN4
 
CH2-MODEL-SETUP-v2017.1-JC-APR27-2017.pdf
jcc00023con
 
GR3-PPTFINAL (1).pptx 0.91 MbHIHUHUGG,HJGH
DarylArellaga1
 
1 Simple and Compound Interest_953c061c981ff8640f0b8e733b245589.pdf
JaexczJol060205
 
Extract Transformation Load (3) (1).pptx
revathi148366
 
Taxes Foundatisdcsdcsdon Certificate.pdf
PratyushPrem2
 
Introduction-to-Python-Programming-Language (1).pptx
dhyeysapariya
 
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
oop_java (1) of ice or cse or eee ic.pdf
sabiquntoufiqlabonno
 
Analysis of Employee_Attrition_Presentation.pptx
AdawuRedeemer
 
Company Profile 2023 PT. ZEKON INDONESIA.pdf
hendranofriadi26
 
Introduction to Data Analytics and Data Science
KavithaCIT
 

Data Ware Housing through SQL concept

  • 1. Ahmad Iqbal (09) Amir Mazhar (65) Kashif Tangra (42) Usman Ghani (51)
  • 2. Presented To Sir Zubair Malik
  • 3.  Structure Query Language is a computer language for storing manipulating and retrieving data stored in Relational Data Base.  The SQL is an standardized language for relational database system.  MySQL , MS Access, Oracle servers use SQL as a standard language of database
  • 4.  SQL was invented in 1970. by IBM (International Business Machine).  The initial version of SQL is known as SEQUEL, (structured query language).  The SQL is developed to manipulate and retrieve stored data in relational database management system.
  • 5.  There are fewer commands through which the structure query language is controlled or operated. These Commands are as following:  Data Definition Language (DDL)  Data Manipulation Language (DML)  Data Control Language (DCL)
  • 6.  The Data Definition Language is a standard that defines the different structure in a database.  Simply we can say that DDL can define the behavior of a database  The DDL not just only define the behavior of database, it can also be modified through DDL.
  • 7.  There are few commands for DDL of a Database, which are following:  Create- is used to create the database or its objects.  Drop- is used to delete objects from the database.  Truncate-is used to remove all records from a table  Comment-is used to add comments to the data dictionary.  Rename-is used to rename an object existing in the database.
  • 8.  The DML is deals with the manipulation of data within the database such as:  Select- is used to retrieve data from the a database.  Insert- is used to insert data into a table.  Update-is used to update existing data within a table.  Delete-is used to delete records from a database table.
  • 9.  Syntax.  SELECT * FROM TABLE;  Example  SELECT StudentName, RollNo FROM StudentID;
  • 10.  Syntax  INSERT INTO table_name (column1, column 2, column3, ...) VALUES (value1, value2, value3, ...);  Example  INSERT INTO table_name (Name, Class, Roll NO) VALUES (Hassan, BS-IT, 71,);
  • 11.  Syntax  UPDATE table_name SET column1 = value1, column2 = value2, ... WHERE condition;  Example  UPDATE StudentID SET StudentName=‘Aamir’ WHERE condition; StudentID=1
  • 12.  Syntax  DELETE FROM table_name;  Example  DELETE FROM StudentID;  Syntax  DELETE FROM table_name WHERE condition;  Example  DELETE FROM StudentID WHERE StudentName =‘Hassan';
  • 13.  The (DCL) is based on two command, GRANT command and REVOKE command, these commands deals with the rights permission controls of the database system.  GRANT-gives user’s access permissions to database.  REVOKE-withdraw user’s access permissions given by using the GRANT command.
  • 14.  Syntax  GRANT privilege_name ON object_name TO {user_name |PUBLIC |role_name} [WITH GRANT OPTION];
  • 15.  Syntax  REVOKE privilege_name ON object_name FROM {user_name |PUBLIC |role_name}
  • 16.  An aggregate function allows you to perform a calculation on a set of values to return a single scalar value.  Some aggregate functions.  AVG-calculates the average of a set of values.  COUNT-counts rows in a specified table or view.  MIN- gets the minimum value in a set of values.  MAX- gets the maximum value in a set of values.  SUM-calculates the sum of values.