SlideShare a Scribd company logo
STRUCTURED QUERY
LANGUAGE-SQL
BY- SAURABH UPADHYAY
WHAT IS SQL ?
• SQL IS STRUCTURED QUERY LANGUAGE, WHICH IS A COMPUTER LANGUAGE FOR
STORING, MANIPULATING AND RETRIEVING DATA STORED IN A RELATIONAL
DATABASE.
• SQL IS THE STANDARD LANGUAGE FOR RELATIONAL DATABASE SYSTEM. ALL THE
RELATIONAL DATABASE MANAGEMENT SYSTEMS (RDMS) LIKE MYSQL, MS ACCESS,
ORACLE, SYBASE, INFORMIX, POSTGRESQL AND SQL SERVER USE SQL AS THEIR
STANDARD DATABASE LANGUAGE.
• ALSO, THEY ARE USING DIFFERENT DIALECTS, SUCH AS −
• MS SQL SERVER USING T-SQL,
• ORACLE USING PL/SQL,
• MS ACCESS VERSION OF SQL IS CALLED JET SQL (NATIVE FORMAT) ETC.
WHY SQL?
• SQL IS WIDELY POPULAR BECAUSE IT OFFERS THE FOLLOWING ADVANTAGES −
• ALLOWS USERS TO ACCESS DATA IN THE RELATIONAL DATABASE MANAGEMENT
SYSTEMS.
• ALLOWS USERS TO DESCRIBE THE DATA.
• ALLOWS USERS TO DEFINE THE DATA IN A DATABASE AND MANIPULATE THAT DATA.
• ALLOWS TO EMBED WITHIN OTHER LANGUAGES USING SQL MODULES, LIBRARIES &
PRE-COMPILERS.
• ALLOWS USERS TO CREATE AND DROP DATABASES AND TABLES.
• ALLOWS USERS TO CREATE VIEW, STORED PROCEDURE, FUNCTIONS IN A DATABASE.
• ALLOWS USERS TO SET PERMISSIONS ON TABLES, PROCEDURES AND VIEWS.
SQL PROCESS
• WHEN YOU ARE EXECUTING AN SQL COMMAND FOR ANY RDBMS, THE SYSTEM DETERMINES
THE BEST WAY TO CARRY OUT YOUR REQUEST AND SQL ENGINE FIGURES OUT HOW TO
INTERPRET THE TASK.
• THERE ARE VARIOUS COMPONENTS INCLUDED IN THIS PROCESS.
• THESE COMPONENTS ARE −
• QUERY DISPATCHER
• OPTIMIZATION ENGINES
• CLASSIC QUERY ENGINE
• SQL QUERY ENGINE, ETC.
• A CLASSIC QUERY ENGINE HANDLES ALL THE NON-SQL QUERIES, BUT A SQL QUERY ENGINE
WON'T HANDLE LOGICAL FILES.
• FOLLOWING IS A SIMPLE DIAGRAM SHOWING THE SQL ARCHITECTURE −
SQL ARCHITECTURE
SQL COMMANDS
• THE STANDARD SQL COMMANDS TO INTERACT WITH RELATIONAL DATABASES
ARE CREATE, SELECT, INSERT, UPDATE, DELETE AND DROP. THESE COMMANDS
CAN BE CLASSIFIED INTO THE FOLLOWING GROUPS BASED ON THEIR NATURE −
• DDL - DATA DEFINITION LANGUAGE
DML - DATA MANIPULATION LANGUAGE
DCL - DATA CONTROL LANGUAGE
WHAT IS A TABLE ?
• THE DATA IN AN RDBMS IS STORED IN DATABASE OBJECTS WHICH ARE CALLED
AS TABLES. THIS TABLE IS BASICALLY A COLLECTION OF RELATED DATA ENTRIES
AND IT CONSISTS OF NUMEROUS COLUMNS AND ROWS.
• REMEMBER, A TABLE IS THE MOST COMMON AND SIMPLEST FORM OF DATA
STORAGE IN A RELATIONAL DATABASE. THE FOLLOWING PROGRAM IS AN
EXAMPLE OF A CUSTOMERS TABLE −
WHAT IS A COLUMN ?
• A COLUMN IS A VERTICAL ENTITY IN A TABLE THAT CONTAINS ALL
INFORMATION ASSOCIATED WITH A SPECIFIC FIELD IN A TABLE.
• FOR EXAMPLE, A COLUMN IN THE CUSTOMERS TABLE IS ADDRESS, WHICH
REPRESENTS LOCATION DESCRIPTION AND WOULD BE AS SHOWN BELOW −
Structured Query Language -SQL
Ad

More Related Content

What's hot (11)

XML - SAX
XML - SAXXML - SAX
XML - SAX
SaraswathiRamalingam
 
Database management systems
Database management systemsDatabase management systems
Database management systems
Chiran Gurung
 
Pega test topics - data modeling
Pega  test topics -  data modelingPega  test topics -  data modeling
Pega test topics - data modeling
Pega Bpm Training Tutorials
 
Oracle developer course content - Trainmesofttech
Oracle developer course content - TrainmesofttechOracle developer course content - Trainmesofttech
Oracle developer course content - Trainmesofttech
Trainmesofttech
 
Columnstore indexes in sql server 2014
Columnstore indexes in sql server 2014Columnstore indexes in sql server 2014
Columnstore indexes in sql server 2014
Antonios Chatzipavlis
 
My sql vs sql
My sql vs sqlMy sql vs sql
My sql vs sql
calltutors
 
Oracle Week 2016 - Modern Data Architecture
Oracle Week 2016 - Modern Data ArchitectureOracle Week 2016 - Modern Data Architecture
Oracle Week 2016 - Modern Data Architecture
Arthur Gimpel
 
Amazon Web Services (Database)
Amazon Web Services (Database)Amazon Web Services (Database)
Amazon Web Services (Database)
Nishant Bhardwaj
 
Business intelligence
Business intelligenceBusiness intelligence
Business intelligence
shraddha mane
 
Xml
XmlXml
Xml
baabtra.com - No. 1 supplier of quality freshers
 
Database Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance AnalysisDatabase Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance Analysis
DAGEOP LTD
 

Similar to Structured Query Language -SQL (20)

Sql vs no sql
Sql vs no sqlSql vs no sql
Sql vs no sql
Bhuwan Paneru
 
Lecture 4-RDBMS.pptx
Lecture 4-RDBMS.pptxLecture 4-RDBMS.pptx
Lecture 4-RDBMS.pptx
RUBAB79
 
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
WrushabhShirsat3
 
unit-ii.pptx
unit-ii.pptxunit-ii.pptx
unit-ii.pptx
NilamHonmane
 
slides about : Introduction_to_SQL.pptx
slides about :  Introduction_to_SQL.pptxslides about :  Introduction_to_SQL.pptx
slides about : Introduction_to_SQL.pptx
DrMarwaElsherif
 
SQL PPT.pptx
SQL PPT.pptxSQL PPT.pptx
SQL PPT.pptx
Kulbir4
 
Pl sql content
Pl sql contentPl sql content
Pl sql content
MargaretMaryT
 
Introduction to SQL, SQL*Plus
Introduction to SQL, SQL*PlusIntroduction to SQL, SQL*Plus
Introduction to SQL, SQL*Plus
Chhom Karath
 
SQL Training courses.pptx
SQL Training courses.pptxSQL Training courses.pptx
SQL Training courses.pptx
irfanakram32
 
structure query language with DATABASE MANAGEMENT
structure query language with DATABASE MANAGEMENTstructure query language with DATABASE MANAGEMENT
structure query language with DATABASE MANAGEMENT
RSathyaPriyaCSEKIOT
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
Mian Abdul Raheem
 
Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332
Tushar Wagh
 
Structured query language(sql)ppt
Structured query language(sql)pptStructured query language(sql)ppt
Structured query language(sql)ppt
Gowarthini
 
SQL EXCLUSIVE NOTES .pdf
SQL EXCLUSIVE NOTES .pdfSQL EXCLUSIVE NOTES .pdf
SQL EXCLUSIVE NOTES .pdf
NiravPanchal50
 
Microsoft sql server database administration
Microsoft sql server database administrationMicrosoft sql server database administration
Microsoft sql server database administration
Rahul Singh
 
Sql – pocket guide
Sql – pocket guideSql – pocket guide
Sql – pocket guide
Santhosh Kumar
 
NCTU ppt 2023-2024_WEEK1-Introduction to DBMS.pdf
NCTU ppt 2023-2024_WEEK1-Introduction to DBMS.pdfNCTU ppt 2023-2024_WEEK1-Introduction to DBMS.pdf
NCTU ppt 2023-2024_WEEK1-Introduction to DBMS.pdf
Amany Saeed
 
Database part2-
Database part2-Database part2-
Database part2-
Taymoor Nazmy
 
Sql
SqlSql
Sql
snegacmr
 
SQL
SQLSQL
SQL
Devyani Chaudhari
 
Lecture 4-RDBMS.pptx
Lecture 4-RDBMS.pptxLecture 4-RDBMS.pptx
Lecture 4-RDBMS.pptx
RUBAB79
 
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfytxjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
xjtrutdctrd5454drxxresersestryugyufy6rythgfytfyt
WrushabhShirsat3
 
slides about : Introduction_to_SQL.pptx
slides about :  Introduction_to_SQL.pptxslides about :  Introduction_to_SQL.pptx
slides about : Introduction_to_SQL.pptx
DrMarwaElsherif
 
SQL PPT.pptx
SQL PPT.pptxSQL PPT.pptx
SQL PPT.pptx
Kulbir4
 
Introduction to SQL, SQL*Plus
Introduction to SQL, SQL*PlusIntroduction to SQL, SQL*Plus
Introduction to SQL, SQL*Plus
Chhom Karath
 
SQL Training courses.pptx
SQL Training courses.pptxSQL Training courses.pptx
SQL Training courses.pptx
irfanakram32
 
structure query language with DATABASE MANAGEMENT
structure query language with DATABASE MANAGEMENTstructure query language with DATABASE MANAGEMENT
structure query language with DATABASE MANAGEMENT
RSathyaPriyaCSEKIOT
 
Relational Database Management System
Relational Database Management SystemRelational Database Management System
Relational Database Management System
Mian Abdul Raheem
 
Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332
Tushar Wagh
 
Structured query language(sql)ppt
Structured query language(sql)pptStructured query language(sql)ppt
Structured query language(sql)ppt
Gowarthini
 
SQL EXCLUSIVE NOTES .pdf
SQL EXCLUSIVE NOTES .pdfSQL EXCLUSIVE NOTES .pdf
SQL EXCLUSIVE NOTES .pdf
NiravPanchal50
 
Microsoft sql server database administration
Microsoft sql server database administrationMicrosoft sql server database administration
Microsoft sql server database administration
Rahul Singh
 
NCTU ppt 2023-2024_WEEK1-Introduction to DBMS.pdf
NCTU ppt 2023-2024_WEEK1-Introduction to DBMS.pdfNCTU ppt 2023-2024_WEEK1-Introduction to DBMS.pdf
NCTU ppt 2023-2024_WEEK1-Introduction to DBMS.pdf
Amany Saeed
 
Ad

More from Saurabh Upadhyay (6)

TCS iON Certification
TCS iON CertificationTCS iON Certification
TCS iON Certification
Saurabh Upadhyay
 
Unix/Linux
Unix/Linux Unix/Linux
Unix/Linux
Saurabh Upadhyay
 
What is java?-Saurabh Upadhyay
What is java?-Saurabh UpadhyayWhat is java?-Saurabh Upadhyay
What is java?-Saurabh Upadhyay
Saurabh Upadhyay
 
GT C Tour 2018 Highlights
GT C Tour 2018 HighlightsGT C Tour 2018 Highlights
GT C Tour 2018 Highlights
Saurabh Upadhyay
 
Artificial Intelligence VS Machine Learning
Artificial Intelligence VS Machine LearningArtificial Intelligence VS Machine Learning
Artificial Intelligence VS Machine Learning
Saurabh Upadhyay
 
Object oriented programming concept- Saurabh Upadhyay
Object oriented programming concept- Saurabh UpadhyayObject oriented programming concept- Saurabh Upadhyay
Object oriented programming concept- Saurabh Upadhyay
Saurabh Upadhyay
 
What is java?-Saurabh Upadhyay
What is java?-Saurabh UpadhyayWhat is java?-Saurabh Upadhyay
What is java?-Saurabh Upadhyay
Saurabh Upadhyay
 
Artificial Intelligence VS Machine Learning
Artificial Intelligence VS Machine LearningArtificial Intelligence VS Machine Learning
Artificial Intelligence VS Machine Learning
Saurabh Upadhyay
 
Object oriented programming concept- Saurabh Upadhyay
Object oriented programming concept- Saurabh UpadhyayObject oriented programming concept- Saurabh Upadhyay
Object oriented programming concept- Saurabh Upadhyay
Saurabh Upadhyay
 
Ad

Recently uploaded (20)

RightShip-Inspection-Maritime-Safety-Simplified.pptx
RightShip-Inspection-Maritime-Safety-Simplified.pptxRightShip-Inspection-Maritime-Safety-Simplified.pptx
RightShip-Inspection-Maritime-Safety-Simplified.pptx
ultronmeg
 
Sample animal revalidation protocol for resaecrh based.pptx
Sample animal revalidation protocol for resaecrh based.pptxSample animal revalidation protocol for resaecrh based.pptx
Sample animal revalidation protocol for resaecrh based.pptx
azeemccras
 
SEMINAR REPORT PPT.pptxSDJADADGGDYSADGSGJSFDH
SEMINAR REPORT PPT.pptxSDJADADGGDYSADGSGJSFDHSEMINAR REPORT PPT.pptxSDJADADGGDYSADGSGJSFDH
SEMINAR REPORT PPT.pptxSDJADADGGDYSADGSGJSFDH
123candemet2003
 
Best Fashion Designing Colleges in Delhi
Best Fashion Designing Colleges in DelhiBest Fashion Designing Colleges in Delhi
Best Fashion Designing Colleges in Delhi
top10privatecolleges
 
SAFETY BRIEFING.........................
SAFETY BRIEFING.........................SAFETY BRIEFING.........................
SAFETY BRIEFING.........................
BalaChandran458212
 
Introduction on Speaking skills Power Point
Introduction on Speaking skills Power PointIntroduction on Speaking skills Power Point
Introduction on Speaking skills Power Point
helenswarna
 
Top MBA Specializations List at ISMS Pune.pdf
Top MBA Specializations List at ISMS Pune.pdfTop MBA Specializations List at ISMS Pune.pdf
Top MBA Specializations List at ISMS Pune.pdf
ISMS PUne
 
Top Business Schools in Delhi For Quality Education
Top Business Schools in Delhi For Quality EducationTop Business Schools in Delhi For Quality Education
Top Business Schools in Delhi For Quality Education
top10privatecolleges
 
美国学位证(纽约州立大学德里分校毕业证明)SUNYD文凭证书复刻
美国学位证(纽约州立大学德里分校毕业证明)SUNYD文凭证书复刻美国学位证(纽约州立大学德里分校毕业证明)SUNYD文凭证书复刻
美国学位证(纽约州立大学德里分校毕业证明)SUNYD文凭证书复刻
Taqyea
 
Huckel_MO_Theory_Colorful_Presentation (1).pptx
Huckel_MO_Theory_Colorful_Presentation (1).pptxHuckel_MO_Theory_Colorful_Presentation (1).pptx
Huckel_MO_Theory_Colorful_Presentation (1).pptx
study2022bsc
 
HCollege ppt guidance and counselin.pptx
HCollege ppt guidance and counselin.pptxHCollege ppt guidance and counselin.pptx
HCollege ppt guidance and counselin.pptx
liajohn0808
 
Lecture 4.pptx which is need for microeconomic
Lecture 4.pptx which is need for microeconomicLecture 4.pptx which is need for microeconomic
Lecture 4.pptx which is need for microeconomic
mdrakibhasan1427
 
LCL216_2024-2_WEEKS 4 & 5_IF CLAUSES (1).pdf
LCL216_2024-2_WEEKS 4 & 5_IF CLAUSES (1).pdfLCL216_2024-2_WEEKS 4 & 5_IF CLAUSES (1).pdf
LCL216_2024-2_WEEKS 4 & 5_IF CLAUSES (1).pdf
rafaelsago2015
 
GENERAL INFORMATION for the most beautiful
GENERAL INFORMATION for the most beautifulGENERAL INFORMATION for the most beautiful
GENERAL INFORMATION for the most beautiful
12213013
 
Curriculum Vitae of Professor Dr. Nazrul Islam
Curriculum Vitae of Professor Dr. Nazrul IslamCurriculum Vitae of Professor Dr. Nazrul Islam
Curriculum Vitae of Professor Dr. Nazrul Islam
Dr. Nazrul Islam
 
Placement cell of college - why choose me
Placement cell of college - why choose mePlacement cell of college - why choose me
Placement cell of college - why choose me
mmanvi024
 
巴利亚多利德大学毕业证书学校原版文凭补办UVa成绩单办本科成绩单
巴利亚多利德大学毕业证书学校原版文凭补办UVa成绩单办本科成绩单巴利亚多利德大学毕业证书学校原版文凭补办UVa成绩单办本科成绩单
巴利亚多利德大学毕业证书学校原版文凭补办UVa成绩单办本科成绩单
xule9cv6nd
 
remakingyourselfpresentation-250430095415-6476ade1.pptx
remakingyourselfpresentation-250430095415-6476ade1.pptxremakingyourselfpresentation-250430095415-6476ade1.pptx
remakingyourselfpresentation-250430095415-6476ade1.pptx
lakhmanpindariya9176
 
Handling Exceptions and waits in selenium.pptx
Handling Exceptions and waits in selenium.pptxHandling Exceptions and waits in selenium.pptx
Handling Exceptions and waits in selenium.pptx
Madhuri Lonikar
 
For ssrvm school Admission Campaign.pptx
For ssrvm school Admission Campaign.pptxFor ssrvm school Admission Campaign.pptx
For ssrvm school Admission Campaign.pptx
ArunTYltp
 
RightShip-Inspection-Maritime-Safety-Simplified.pptx
RightShip-Inspection-Maritime-Safety-Simplified.pptxRightShip-Inspection-Maritime-Safety-Simplified.pptx
RightShip-Inspection-Maritime-Safety-Simplified.pptx
ultronmeg
 
Sample animal revalidation protocol for resaecrh based.pptx
Sample animal revalidation protocol for resaecrh based.pptxSample animal revalidation protocol for resaecrh based.pptx
Sample animal revalidation protocol for resaecrh based.pptx
azeemccras
 
SEMINAR REPORT PPT.pptxSDJADADGGDYSADGSGJSFDH
SEMINAR REPORT PPT.pptxSDJADADGGDYSADGSGJSFDHSEMINAR REPORT PPT.pptxSDJADADGGDYSADGSGJSFDH
SEMINAR REPORT PPT.pptxSDJADADGGDYSADGSGJSFDH
123candemet2003
 
Best Fashion Designing Colleges in Delhi
Best Fashion Designing Colleges in DelhiBest Fashion Designing Colleges in Delhi
Best Fashion Designing Colleges in Delhi
top10privatecolleges
 
SAFETY BRIEFING.........................
SAFETY BRIEFING.........................SAFETY BRIEFING.........................
SAFETY BRIEFING.........................
BalaChandran458212
 
Introduction on Speaking skills Power Point
Introduction on Speaking skills Power PointIntroduction on Speaking skills Power Point
Introduction on Speaking skills Power Point
helenswarna
 
Top MBA Specializations List at ISMS Pune.pdf
Top MBA Specializations List at ISMS Pune.pdfTop MBA Specializations List at ISMS Pune.pdf
Top MBA Specializations List at ISMS Pune.pdf
ISMS PUne
 
Top Business Schools in Delhi For Quality Education
Top Business Schools in Delhi For Quality EducationTop Business Schools in Delhi For Quality Education
Top Business Schools in Delhi For Quality Education
top10privatecolleges
 
美国学位证(纽约州立大学德里分校毕业证明)SUNYD文凭证书复刻
美国学位证(纽约州立大学德里分校毕业证明)SUNYD文凭证书复刻美国学位证(纽约州立大学德里分校毕业证明)SUNYD文凭证书复刻
美国学位证(纽约州立大学德里分校毕业证明)SUNYD文凭证书复刻
Taqyea
 
Huckel_MO_Theory_Colorful_Presentation (1).pptx
Huckel_MO_Theory_Colorful_Presentation (1).pptxHuckel_MO_Theory_Colorful_Presentation (1).pptx
Huckel_MO_Theory_Colorful_Presentation (1).pptx
study2022bsc
 
HCollege ppt guidance and counselin.pptx
HCollege ppt guidance and counselin.pptxHCollege ppt guidance and counselin.pptx
HCollege ppt guidance and counselin.pptx
liajohn0808
 
Lecture 4.pptx which is need for microeconomic
Lecture 4.pptx which is need for microeconomicLecture 4.pptx which is need for microeconomic
Lecture 4.pptx which is need for microeconomic
mdrakibhasan1427
 
LCL216_2024-2_WEEKS 4 & 5_IF CLAUSES (1).pdf
LCL216_2024-2_WEEKS 4 & 5_IF CLAUSES (1).pdfLCL216_2024-2_WEEKS 4 & 5_IF CLAUSES (1).pdf
LCL216_2024-2_WEEKS 4 & 5_IF CLAUSES (1).pdf
rafaelsago2015
 
GENERAL INFORMATION for the most beautiful
GENERAL INFORMATION for the most beautifulGENERAL INFORMATION for the most beautiful
GENERAL INFORMATION for the most beautiful
12213013
 
Curriculum Vitae of Professor Dr. Nazrul Islam
Curriculum Vitae of Professor Dr. Nazrul IslamCurriculum Vitae of Professor Dr. Nazrul Islam
Curriculum Vitae of Professor Dr. Nazrul Islam
Dr. Nazrul Islam
 
Placement cell of college - why choose me
Placement cell of college - why choose mePlacement cell of college - why choose me
Placement cell of college - why choose me
mmanvi024
 
巴利亚多利德大学毕业证书学校原版文凭补办UVa成绩单办本科成绩单
巴利亚多利德大学毕业证书学校原版文凭补办UVa成绩单办本科成绩单巴利亚多利德大学毕业证书学校原版文凭补办UVa成绩单办本科成绩单
巴利亚多利德大学毕业证书学校原版文凭补办UVa成绩单办本科成绩单
xule9cv6nd
 
remakingyourselfpresentation-250430095415-6476ade1.pptx
remakingyourselfpresentation-250430095415-6476ade1.pptxremakingyourselfpresentation-250430095415-6476ade1.pptx
remakingyourselfpresentation-250430095415-6476ade1.pptx
lakhmanpindariya9176
 
Handling Exceptions and waits in selenium.pptx
Handling Exceptions and waits in selenium.pptxHandling Exceptions and waits in selenium.pptx
Handling Exceptions and waits in selenium.pptx
Madhuri Lonikar
 
For ssrvm school Admission Campaign.pptx
For ssrvm school Admission Campaign.pptxFor ssrvm school Admission Campaign.pptx
For ssrvm school Admission Campaign.pptx
ArunTYltp
 

Structured Query Language -SQL

  • 2. WHAT IS SQL ? • SQL IS STRUCTURED QUERY LANGUAGE, WHICH IS A COMPUTER LANGUAGE FOR STORING, MANIPULATING AND RETRIEVING DATA STORED IN A RELATIONAL DATABASE. • SQL IS THE STANDARD LANGUAGE FOR RELATIONAL DATABASE SYSTEM. ALL THE RELATIONAL DATABASE MANAGEMENT SYSTEMS (RDMS) LIKE MYSQL, MS ACCESS, ORACLE, SYBASE, INFORMIX, POSTGRESQL AND SQL SERVER USE SQL AS THEIR STANDARD DATABASE LANGUAGE. • ALSO, THEY ARE USING DIFFERENT DIALECTS, SUCH AS − • MS SQL SERVER USING T-SQL, • ORACLE USING PL/SQL, • MS ACCESS VERSION OF SQL IS CALLED JET SQL (NATIVE FORMAT) ETC.
  • 3. WHY SQL? • SQL IS WIDELY POPULAR BECAUSE IT OFFERS THE FOLLOWING ADVANTAGES − • ALLOWS USERS TO ACCESS DATA IN THE RELATIONAL DATABASE MANAGEMENT SYSTEMS. • ALLOWS USERS TO DESCRIBE THE DATA. • ALLOWS USERS TO DEFINE THE DATA IN A DATABASE AND MANIPULATE THAT DATA. • ALLOWS TO EMBED WITHIN OTHER LANGUAGES USING SQL MODULES, LIBRARIES & PRE-COMPILERS. • ALLOWS USERS TO CREATE AND DROP DATABASES AND TABLES. • ALLOWS USERS TO CREATE VIEW, STORED PROCEDURE, FUNCTIONS IN A DATABASE. • ALLOWS USERS TO SET PERMISSIONS ON TABLES, PROCEDURES AND VIEWS.
  • 4. SQL PROCESS • WHEN YOU ARE EXECUTING AN SQL COMMAND FOR ANY RDBMS, THE SYSTEM DETERMINES THE BEST WAY TO CARRY OUT YOUR REQUEST AND SQL ENGINE FIGURES OUT HOW TO INTERPRET THE TASK. • THERE ARE VARIOUS COMPONENTS INCLUDED IN THIS PROCESS. • THESE COMPONENTS ARE − • QUERY DISPATCHER • OPTIMIZATION ENGINES • CLASSIC QUERY ENGINE • SQL QUERY ENGINE, ETC. • A CLASSIC QUERY ENGINE HANDLES ALL THE NON-SQL QUERIES, BUT A SQL QUERY ENGINE WON'T HANDLE LOGICAL FILES. • FOLLOWING IS A SIMPLE DIAGRAM SHOWING THE SQL ARCHITECTURE −
  • 6. SQL COMMANDS • THE STANDARD SQL COMMANDS TO INTERACT WITH RELATIONAL DATABASES ARE CREATE, SELECT, INSERT, UPDATE, DELETE AND DROP. THESE COMMANDS CAN BE CLASSIFIED INTO THE FOLLOWING GROUPS BASED ON THEIR NATURE − • DDL - DATA DEFINITION LANGUAGE
  • 7. DML - DATA MANIPULATION LANGUAGE
  • 8. DCL - DATA CONTROL LANGUAGE
  • 9. WHAT IS A TABLE ? • THE DATA IN AN RDBMS IS STORED IN DATABASE OBJECTS WHICH ARE CALLED AS TABLES. THIS TABLE IS BASICALLY A COLLECTION OF RELATED DATA ENTRIES AND IT CONSISTS OF NUMEROUS COLUMNS AND ROWS. • REMEMBER, A TABLE IS THE MOST COMMON AND SIMPLEST FORM OF DATA STORAGE IN A RELATIONAL DATABASE. THE FOLLOWING PROGRAM IS AN EXAMPLE OF A CUSTOMERS TABLE −
  • 10. WHAT IS A COLUMN ? • A COLUMN IS A VERTICAL ENTITY IN A TABLE THAT CONTAINS ALL INFORMATION ASSOCIATED WITH A SPECIFIC FIELD IN A TABLE. • FOR EXAMPLE, A COLUMN IN THE CUSTOMERS TABLE IS ADDRESS, WHICH REPRESENTS LOCATION DESCRIPTION AND WOULD BE AS SHOWN BELOW −