SlideShare a Scribd company logo
1 of 18
Download to read offline
Introduction to SQL:-
•Structured query language (SQL) is a
programming language for storing and
processing information in a relational database.
•-> A relational database stores information in
tabular form, with rows and columns
representing different data attributes and the
various relationships between the data values..
VARIOUS TYPES OF SQL COMMANDS:-
1.Data Definition Language(DDL)
2.Data Manipulation Language(DML)
3.Data Control Language(DCL)
4.Transaction Control Language(TCL)
5.Data Query Language(DCL)
FLOW CHART:
Data Definition Language:-
• DDL (Data Definition Language) is a type of SQL command used
to define data structures and modify data. These commands
are used to create or modify the tables in SQL.
• DDL COMMANDS:
1.Create
2.Alter
3.Truncate
4.Drop
5.Rename
1.CREATE COMMAND:-
This command is used to create a new table in SQL. The
user has to give information like table name, column
names, and their datatypes.
SYNTAX:
CREATE TABLE table-name
(column1 data-type(size),
column2 data-type(size),
………………
column N data-type(size));
Ex: create table student( sno number(3),
sname varchar2(10),
saddress varchar2(10));
2. ALTER COMMAND:-
• To change the structure of a table. This change could
be either modify an existing attribute or add a new
attribute.
• SYNTAX:
ALTER TABLE table-name {ADD / MODIFY} (column1
datatype1);
• Ex1: alter table stu add (sname varchar2(15));
• Ex2: alter table stu modify(sname char(6));
3.TRUNCATE COMMAND:-
To remove all rows from a table we can use ‘truncate’
command.
•SYNTAX: TRUNCATE TABLE <tablename>
Ex: TRUNCATE table stu;
4.DROP COMMAND:-
The drop command can be used to drop a table.
SYNTAX: DROP TABLE table_name;
Ex: drop table stu;
5.RENAME COMMAND:-
Rename command can be used to change the
name of an exiting table.
SYNTAX: RENAME <old name> to <new name>;
Ex: rename stu to student;
DATA MANIPULATION LANGUAGE:-
• A data manipulation language (DML) is a computer
programming language used for adding , deleting, and
modifying data in a database.
• DML COMMANDS:
• 1.Insert
• 2.Update
• 3.Delete
• 4.Merge
INSERT COMMAND:-
The insert command is used to add rows to a table .
SYNTAX: insert into <tablename> values(a list of data values):
Ex: insert into student values (101, ‘brahmam’, ‘gnt’);
2.UPDATE COMMAND:-
An update statement changes the data of one or more records in a
table.
SYNTAX: update table_name SET column1 = value1, column2 =
value2,… WHERE condition;
Ex: UPDATE customers SET contact name = ‘Vishnu’, city = ‘viz’
WHERE customer id =1;
DELETE COMMAND:-
• The delete statement is used to remove one or more
records from a table.
• SYNTAX:
DELETE FROM table_name WHERE condition;
• Ex:
delete from customer where customer name = ‘Vishnu’;
DATA CONTROL LANGUAGE (DCL):-
• DCL commands are used to enforce database security in a
multiple user database environment.
• Only Database Administrator’s or owners of the database
object can provide /remove privileges on a database object.
• Two types of DCL commands. They are,
GRANT COMMAND
 REVOKE COMMAND
GRANT COMMAND:-
• GRANT is a command used to provide access or privileges on
the database objects to the users.
• SYNTAX: grant privileges on <object name> to <user name>;
Ex:GRANT SELECT, UPDATE ON MY_TABLE TO SOME_USER, ANOTHER_USER
;
•  REVOKE COMMAND:- The REVOKE command user access
rights or privileges to the database objects.
• SYNTAX: revoke privileges on <object name> from <user
name>;
• Ex: REVOKE SELECT, UPDATE ON MY_TABLE FROM USER1, USER2;
TRANSACTION CONTROL LANGUAGE(TCL):-
• Transaction changes can be made permanent to a database
only if they are committed. A transaction executable
statements and end explicitly with their rollback or commit
statement and implicity.
Commit
Rollback
Save point
CON…
• COMMIT:- Commit command is used to save all the
transactions to the database.
• SYNTAX: COMMIT;
• Rollback:- Rollback command is used to undo transactions
that have not already been saved to the database.
• SYNTAX: ROLLBACK;
• Ex: delete from customers where age =25;
• ROLLBACK;
• SAVEPOINT:- It is used to roll the transaction back to a
certain point without rolling back the entire transaction.
• SYNTAX: SAVEPOINT savepoint_name;
DATA QUERY LANGUAGE(DQL):-DQL is used to
fetch the data from the database
• It uses only one command i.e, SELECT
• SELECT: This is the same as the projection operation of
relational algebra. It is used to select the attribute based
on the condition described by WHERE clause.
1.SYNTAX:SELECT expressions
2.FROM TABLES
3.WHERE conditions;
Ex: SELECT emp_name
FROM employee
WHERE age > 20;
ppt.pdf

More Related Content

Similar to ppt.pdf

hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptxhjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptxEliasPetros
 
Himani uppal-221302130 WP ppt.pptx
Himani uppal-221302130  WP ppt.pptxHimani uppal-221302130  WP ppt.pptx
Himani uppal-221302130 WP ppt.pptxMohitYadav889220
 
Database Management System (DBMS).pptx
Database Management System (DBMS).pptxDatabase Management System (DBMS).pptx
Database Management System (DBMS).pptxGevitaChinnaiah
 
PostgreSQL Database Slides
PostgreSQL Database SlidesPostgreSQL Database Slides
PostgreSQL Database Slidesmetsarin
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slidesenosislearningcom
 
COMPUTERS SQL
COMPUTERS SQL COMPUTERS SQL
COMPUTERS SQL Rc Os
 
SQL - DML and DDL Commands
SQL - DML and DDL CommandsSQL - DML and DDL Commands
SQL - DML and DDL CommandsShrija Madhu
 
Oracle SQL AND PL/SQL
Oracle SQL AND PL/SQLOracle SQL AND PL/SQL
Oracle SQL AND PL/SQLsuriyae1
 
BASIC_OF_DATABASE_PPT__new[1].pptx
BASIC_OF_DATABASE_PPT__new[1].pptxBASIC_OF_DATABASE_PPT__new[1].pptx
BASIC_OF_DATABASE_PPT__new[1].pptxNiyatiMandaliya
 
Structured Query Language
Structured Query LanguageStructured Query Language
Structured Query LanguageSurkhab Shelly
 
dbs class 7.ppt
dbs class 7.pptdbs class 7.ppt
dbs class 7.pptMARasheed3
 

Similar to ppt.pdf (20)

hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptxhjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
hjkjlboiupoiuuouoiuoiuoiuoiuoiuoippt.pptx
 
SQL-SHORT-NOTES.pptx
SQL-SHORT-NOTES.pptxSQL-SHORT-NOTES.pptx
SQL-SHORT-NOTES.pptx
 
Himani uppal-221302130 WP ppt.pptx
Himani uppal-221302130  WP ppt.pptxHimani uppal-221302130  WP ppt.pptx
Himani uppal-221302130 WP ppt.pptx
 
Database Management System (DBMS).pptx
Database Management System (DBMS).pptxDatabase Management System (DBMS).pptx
Database Management System (DBMS).pptx
 
PostgreSQL Database Slides
PostgreSQL Database SlidesPostgreSQL Database Slides
PostgreSQL Database Slides
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slides
 
COMPUTERS SQL
COMPUTERS SQL COMPUTERS SQL
COMPUTERS SQL
 
Sql
SqlSql
Sql
 
Rdbms day3
Rdbms day3Rdbms day3
Rdbms day3
 
intro for sql
intro for sql intro for sql
intro for sql
 
SQL - DML and DDL Commands
SQL - DML and DDL CommandsSQL - DML and DDL Commands
SQL - DML and DDL Commands
 
Oracle 11g SQL Overview
Oracle 11g SQL OverviewOracle 11g SQL Overview
Oracle 11g SQL Overview
 
SQL commands
SQL commandsSQL commands
SQL commands
 
Oracle SQL AND PL/SQL
Oracle SQL AND PL/SQLOracle SQL AND PL/SQL
Oracle SQL AND PL/SQL
 
Sql queries
Sql queriesSql queries
Sql queries
 
BASIC_OF_DATABASE_PPT__new[1].pptx
BASIC_OF_DATABASE_PPT__new[1].pptxBASIC_OF_DATABASE_PPT__new[1].pptx
BASIC_OF_DATABASE_PPT__new[1].pptx
 
Structured Query Language
Structured Query LanguageStructured Query Language
Structured Query Language
 
lovely
lovelylovely
lovely
 
dbs class 7.ppt
dbs class 7.pptdbs class 7.ppt
dbs class 7.ppt
 
SQL(DDL & DML)
SQL(DDL & DML)SQL(DDL & DML)
SQL(DDL & DML)
 

Recently uploaded

(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 

Recently uploaded (20)

(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 

ppt.pdf

  • 1.
  • 2. Introduction to SQL:- •Structured query language (SQL) is a programming language for storing and processing information in a relational database. •-> A relational database stores information in tabular form, with rows and columns representing different data attributes and the various relationships between the data values..
  • 3. VARIOUS TYPES OF SQL COMMANDS:- 1.Data Definition Language(DDL) 2.Data Manipulation Language(DML) 3.Data Control Language(DCL) 4.Transaction Control Language(TCL) 5.Data Query Language(DCL)
  • 5. Data Definition Language:- • DDL (Data Definition Language) is a type of SQL command used to define data structures and modify data. These commands are used to create or modify the tables in SQL. • DDL COMMANDS: 1.Create 2.Alter 3.Truncate 4.Drop 5.Rename
  • 6. 1.CREATE COMMAND:- This command is used to create a new table in SQL. The user has to give information like table name, column names, and their datatypes. SYNTAX: CREATE TABLE table-name (column1 data-type(size), column2 data-type(size), ……………… column N data-type(size)); Ex: create table student( sno number(3), sname varchar2(10), saddress varchar2(10));
  • 7. 2. ALTER COMMAND:- • To change the structure of a table. This change could be either modify an existing attribute or add a new attribute. • SYNTAX: ALTER TABLE table-name {ADD / MODIFY} (column1 datatype1); • Ex1: alter table stu add (sname varchar2(15)); • Ex2: alter table stu modify(sname char(6));
  • 8. 3.TRUNCATE COMMAND:- To remove all rows from a table we can use ‘truncate’ command. •SYNTAX: TRUNCATE TABLE <tablename> Ex: TRUNCATE table stu; 4.DROP COMMAND:- The drop command can be used to drop a table. SYNTAX: DROP TABLE table_name; Ex: drop table stu;
  • 9. 5.RENAME COMMAND:- Rename command can be used to change the name of an exiting table. SYNTAX: RENAME <old name> to <new name>; Ex: rename stu to student;
  • 10. DATA MANIPULATION LANGUAGE:- • A data manipulation language (DML) is a computer programming language used for adding , deleting, and modifying data in a database. • DML COMMANDS: • 1.Insert • 2.Update • 3.Delete • 4.Merge
  • 11. INSERT COMMAND:- The insert command is used to add rows to a table . SYNTAX: insert into <tablename> values(a list of data values): Ex: insert into student values (101, ‘brahmam’, ‘gnt’); 2.UPDATE COMMAND:- An update statement changes the data of one or more records in a table. SYNTAX: update table_name SET column1 = value1, column2 = value2,… WHERE condition; Ex: UPDATE customers SET contact name = ‘Vishnu’, city = ‘viz’ WHERE customer id =1;
  • 12. DELETE COMMAND:- • The delete statement is used to remove one or more records from a table. • SYNTAX: DELETE FROM table_name WHERE condition; • Ex: delete from customer where customer name = ‘Vishnu’;
  • 13. DATA CONTROL LANGUAGE (DCL):- • DCL commands are used to enforce database security in a multiple user database environment. • Only Database Administrator’s or owners of the database object can provide /remove privileges on a database object. • Two types of DCL commands. They are, GRANT COMMAND  REVOKE COMMAND
  • 14. GRANT COMMAND:- • GRANT is a command used to provide access or privileges on the database objects to the users. • SYNTAX: grant privileges on <object name> to <user name>; Ex:GRANT SELECT, UPDATE ON MY_TABLE TO SOME_USER, ANOTHER_USER ; •  REVOKE COMMAND:- The REVOKE command user access rights or privileges to the database objects. • SYNTAX: revoke privileges on <object name> from <user name>; • Ex: REVOKE SELECT, UPDATE ON MY_TABLE FROM USER1, USER2;
  • 15. TRANSACTION CONTROL LANGUAGE(TCL):- • Transaction changes can be made permanent to a database only if they are committed. A transaction executable statements and end explicitly with their rollback or commit statement and implicity. Commit Rollback Save point
  • 16. CON… • COMMIT:- Commit command is used to save all the transactions to the database. • SYNTAX: COMMIT; • Rollback:- Rollback command is used to undo transactions that have not already been saved to the database. • SYNTAX: ROLLBACK; • Ex: delete from customers where age =25; • ROLLBACK; • SAVEPOINT:- It is used to roll the transaction back to a certain point without rolling back the entire transaction. • SYNTAX: SAVEPOINT savepoint_name;
  • 17. DATA QUERY LANGUAGE(DQL):-DQL is used to fetch the data from the database • It uses only one command i.e, SELECT • SELECT: This is the same as the projection operation of relational algebra. It is used to select the attribute based on the condition described by WHERE clause. 1.SYNTAX:SELECT expressions 2.FROM TABLES 3.WHERE conditions; Ex: SELECT emp_name FROM employee WHERE age > 20;