SlideShare a Scribd company logo
Presentation
on
SQL
By Himani Uppal-221302130
INTRODUCTION
• SQL
• DDL commands
• DML commands
• DCL commands
Introduction to SQL
• It stands for Structured Query Language.
• SQL is basically a database management tool.
• It is use for managing the data with the help of
different commands.
• It’s main functions are-
 Data storing.
 Data manipulating.
 Data retrieving.
DDL(Data Definition Language)
• It consist of SQL commands that used to define the database
schema.
• These commands used to create, modify, and delete database
objects such as tables, indexes, views, and stored procedures.
• It includes -:
C A R T D
CREATE ALTER REMANE TRUNCATE DROP
• CREATE – this command is used to create the database or its objects (like table,
index, functions).
Syntax -
CREATE TABLE table_name
( column1 datatype,
column2 datatype,
...... )
• ALTER – this is used to alter the structure of the database. We can add a column
to any existing table.
Syntax-
ALTER TABLE table_name ADD column_name column-definition;
• RENAME – this is used to rename an object existing in the database.
Syntax-
RENAME TABLE abc to xyz;
• TRUNCATE – this is used to remove all records from a table, including all spaces
allocated. It delete the data inside a table, but not the table itself.
Syntax-
TRUNCATE TABLE table_name;
• DROP – this is used to delete an existing table completely from the
database. This command deletes the table records along with their
structure. The table and all its components are completely deleted and
cannot be found again in the database.
Syntax-
DROP TABLE table_name;
DML(Data Manipulation Language)
• The DML commands change the data present in the SQL database. We can
easily access, store, modify, update and delete the existing records from the
database using DML commands.
• It is the component of the SQL statement that controls access to data and to
the database.
• DML commands include -:
 INSERT
 UPDATE
 DELETE .
• INSERT – it is used to insert data into a table.
Syntax -
INSERT INTO TABLE_NAME ( column1 , column2 , .. columnN ) VALUES (val
ue1, value2 .... valueN ) ;
• UPDATE – it is used to update existing data within a table. We can update single
columns as well as multiple column using this command.
Syntax –
UPDATE Table_name SET [column1= value1…, columnN = valueN] WHERE C
ONDITION;
• DELETE – it is used to delete the record from database.
Syntax –
DELETE FROM Table_Name WHERE condition;
DCL (Data Control Language)
• Commands that control a database including administrating privileges and
committing data.
• It helps in controlling access to information stored in a database.
• It includes these commands–
 GRANT
 REVOKE
 ADD
Himani uppal-221302130  WP ppt.pptx

More Related Content

Similar to Himani uppal-221302130 WP ppt.pptx

ppt.pdf
ppt.pdfppt.pdf
ppt.pdf
BrahmamKolli
 
COMMANDS PPT(1).pdf
COMMANDS PPT(1).pdfCOMMANDS PPT(1).pdf
COMMANDS PPT(1).pdf
BrahmamKolli
 
SQL-SHORT-NOTES.pptx
SQL-SHORT-NOTES.pptxSQL-SHORT-NOTES.pptx
SQL-SHORT-NOTES.pptx
PratheeshKumarN
 
Group Members
Group MembersGroup Members
Group Members
Farhan Shahani
 
SQL(DDL & DML)
SQL(DDL & DML)SQL(DDL & DML)
SQL(DDL & DML)
Sharad Dubey
 
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptxMy lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
EliasPetros
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
 
Oracle 11g SQL Overview
Oracle 11g SQL OverviewOracle 11g SQL Overview
Oracle 11g SQL Overview
Prathap Narayanappa
 
DML & DCL.pptx
DML & DCL.pptxDML & DCL.pptx
DML & DCL.pptx
raaj98170
 
Getting Started with MySQL I
Getting Started with MySQL IGetting Started with MySQL I
Getting Started with MySQL I
Sankhya_Analytics
 
Lab2 ddl commands
Lab2 ddl commandsLab2 ddl commands
Lab2 ddl commands
Balqees Al.Mubarak
 
IM02: Database Language
IM02: Database LanguageIM02: Database Language
IM02: Database Language
Kelvin Chan
 
database management system: sql commands lab sql
database management system: sql commands lab sqldatabase management system: sql commands lab sql
database management system: sql commands lab sql
trapeziumtrapezoid12
 
Basics of dml queries
Basics of dml queriesBasics of dml queries
lovely
lovelylovely
lovely
love0323
 
sql statements & joins
sql statements & joinssql statements & joins
sql statements & joins
Safva AP
 
Sql smart reference_by_prasad
Sql smart reference_by_prasadSql smart reference_by_prasad
Sql smart reference_by_prasad
paddu123
 
Sql smart reference_by_prasad
Sql smart reference_by_prasadSql smart reference_by_prasad
Sql smart reference_by_prasad
paddu123
 
Oracle sql material
Oracle sql materialOracle sql material
Oracle sql material
prathap kumar
 
Structured Query Language
Structured Query LanguageStructured Query Language
Structured Query Language
Surkhab Shelly
 

Similar to Himani uppal-221302130 WP ppt.pptx (20)

ppt.pdf
ppt.pdfppt.pdf
ppt.pdf
 
COMMANDS PPT(1).pdf
COMMANDS PPT(1).pdfCOMMANDS PPT(1).pdf
COMMANDS PPT(1).pdf
 
SQL-SHORT-NOTES.pptx
SQL-SHORT-NOTES.pptxSQL-SHORT-NOTES.pptx
SQL-SHORT-NOTES.pptx
 
Group Members
Group MembersGroup Members
Group Members
 
SQL(DDL & DML)
SQL(DDL & DML)SQL(DDL & DML)
SQL(DDL & DML)
 
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptxMy lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
 
Oracle 11g SQL Overview
Oracle 11g SQL OverviewOracle 11g SQL Overview
Oracle 11g SQL Overview
 
DML & DCL.pptx
DML & DCL.pptxDML & DCL.pptx
DML & DCL.pptx
 
Getting Started with MySQL I
Getting Started with MySQL IGetting Started with MySQL I
Getting Started with MySQL I
 
Lab2 ddl commands
Lab2 ddl commandsLab2 ddl commands
Lab2 ddl commands
 
IM02: Database Language
IM02: Database LanguageIM02: Database Language
IM02: Database Language
 
database management system: sql commands lab sql
database management system: sql commands lab sqldatabase management system: sql commands lab sql
database management system: sql commands lab sql
 
Basics of dml queries
Basics of dml queriesBasics of dml queries
Basics of dml queries
 
lovely
lovelylovely
lovely
 
sql statements & joins
sql statements & joinssql statements & joins
sql statements & joins
 
Sql smart reference_by_prasad
Sql smart reference_by_prasadSql smart reference_by_prasad
Sql smart reference_by_prasad
 
Sql smart reference_by_prasad
Sql smart reference_by_prasadSql smart reference_by_prasad
Sql smart reference_by_prasad
 
Oracle sql material
Oracle sql materialOracle sql material
Oracle sql material
 
Structured Query Language
Structured Query LanguageStructured Query Language
Structured Query Language
 

Recently uploaded

Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
PKavitha10
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
artificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptxartificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptx
GauravCar
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
Gino153088
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
Roger Rozario
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
MiscAnnoy1
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
LAXMAREDDY22
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
AjmalKhan50578
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
architagupta876
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
gowrishankartb2005
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
Seminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptxSeminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptx
Madan Karki
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 

Recently uploaded (20)

Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
artificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptxartificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptx
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
4. Mosca vol I -Fisica-Tipler-5ta-Edicion-Vol-1.pdf
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
 
Welding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdfWelding Metallurgy Ferrous Materials.pdf
Welding Metallurgy Ferrous Materials.pdf
 
AI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptxAI assisted telemedicine KIOSK for Rural India.pptx
AI assisted telemedicine KIOSK for Rural India.pptx
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
 
Seminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptxSeminar on Distillation study-mafia.pptx
Seminar on Distillation study-mafia.pptx
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 

Himani uppal-221302130 WP ppt.pptx

  • 2. INTRODUCTION • SQL • DDL commands • DML commands • DCL commands
  • 3. Introduction to SQL • It stands for Structured Query Language. • SQL is basically a database management tool. • It is use for managing the data with the help of different commands. • It’s main functions are-  Data storing.  Data manipulating.  Data retrieving.
  • 4.
  • 5. DDL(Data Definition Language) • It consist of SQL commands that used to define the database schema. • These commands used to create, modify, and delete database objects such as tables, indexes, views, and stored procedures. • It includes -: C A R T D CREATE ALTER REMANE TRUNCATE DROP
  • 6. • CREATE – this command is used to create the database or its objects (like table, index, functions). Syntax - CREATE TABLE table_name ( column1 datatype, column2 datatype, ...... ) • ALTER – this is used to alter the structure of the database. We can add a column to any existing table. Syntax- ALTER TABLE table_name ADD column_name column-definition;
  • 7. • RENAME – this is used to rename an object existing in the database. Syntax- RENAME TABLE abc to xyz; • TRUNCATE – this is used to remove all records from a table, including all spaces allocated. It delete the data inside a table, but not the table itself. Syntax- TRUNCATE TABLE table_name; • DROP – this is used to delete an existing table completely from the database. This command deletes the table records along with their structure. The table and all its components are completely deleted and cannot be found again in the database. Syntax- DROP TABLE table_name;
  • 8. DML(Data Manipulation Language) • The DML commands change the data present in the SQL database. We can easily access, store, modify, update and delete the existing records from the database using DML commands. • It is the component of the SQL statement that controls access to data and to the database. • DML commands include -:  INSERT  UPDATE  DELETE .
  • 9. • INSERT – it is used to insert data into a table. Syntax - INSERT INTO TABLE_NAME ( column1 , column2 , .. columnN ) VALUES (val ue1, value2 .... valueN ) ; • UPDATE – it is used to update existing data within a table. We can update single columns as well as multiple column using this command. Syntax – UPDATE Table_name SET [column1= value1…, columnN = valueN] WHERE C ONDITION; • DELETE – it is used to delete the record from database. Syntax – DELETE FROM Table_Name WHERE condition;
  • 10. DCL (Data Control Language) • Commands that control a database including administrating privileges and committing data. • It helps in controlling access to information stored in a database. • It includes these commands–  GRANT  REVOKE  ADD