SlideShare a Scribd company logo
Structured Query Language (SQL)
GROUP MEMBERSADIL SHAKIRHAMMAD YOUSAFAMMAR YASIR 			HASEEB KHALIDAWAIS AFTAB BUTTMUDDASIR ABIDBILAL AHMED MOHAMMED IMRANFAIZA KHALID RAAZIA IRSHADHAMMAD RASHEED ZULQARNAIN BAJWA
PrEsEnTeRsHammadBilalAwais
ID : 05
IntroductionA business need
Database“An organized collection of information”OR “Set of tables each having different class of data.”
Structured Query Language ( SQL ) A language to communicate with the database
A tool to retrieve the required information from database
Elements
Syntax of SQL is in plain English
To question the databaseWhat SQL can do?With SQL you can:1. Execute queries against a database2. Perform  CRUD function:CREATE       New databasesNew tables in a database	  Records in a databaseREAD          Retrieve data from a database
UPDATE      Update Records in a database
DELETE         Delete Records from a database
Pre-requisites for SQLRelational Database
Tables
Fields
Records
Different Relationships
1-1
1-m SYNTAXStatementTable NameConditionSELECT CustomerName, City, Country  FROM Customer  WHERE Country=‘USA’ColumnsFROM ClauseWHERE ClauseSELECT Clause
ID : 11
QUERIES
SQL Queries

More Related Content

PPTX
Sql(structured query language)
PPTX
SQL Basics
PPTX
SQL : Structured Query Language
PPTX
introdution to SQL and SQL functions
PPTX
SQL Server Learning Drive
PPTX
SQL - Structured query language introduction
ODP
PPT
Mysql
Sql(structured query language)
SQL Basics
SQL : Structured Query Language
introdution to SQL and SQL functions
SQL Server Learning Drive
SQL - Structured query language introduction
Mysql

What's hot (19)

PPTX
SQL Queries Information
PPTX
Database Management - Lecture 2 - SQL select, insert, update and delete
PPTX
SQL - DML and DDL Commands
PDF
Chapter8 my sql revision tour
PPTX
SQL: Structured Query Language
PPTX
Advanced SQL Webinar
PPT
Ms sql server ii
PPT
MS SQL Server 1
DOC
A must Sql notes for beginners
PPTX
SQL commands
PPTX
PPTX
SQL(DDL & DML)
PPTX
Sql basics
PPTX
MySQL Essential Training
DOC
Database queries
PPT
Introduction to-sql
PPTX
Inner join and outer join
PPTX
Data Manipulation Language
PDF
Sql commands
SQL Queries Information
Database Management - Lecture 2 - SQL select, insert, update and delete
SQL - DML and DDL Commands
Chapter8 my sql revision tour
SQL: Structured Query Language
Advanced SQL Webinar
Ms sql server ii
MS SQL Server 1
A must Sql notes for beginners
SQL commands
SQL(DDL & DML)
Sql basics
MySQL Essential Training
Database queries
Introduction to-sql
Inner join and outer join
Data Manipulation Language
Sql commands
Ad

Similar to Structured Query Language (SQL) (20)

PPTX
SQL Training Institute in Ambala ! Batra Computer Centre
PPTX
View od dffmfmfmm,dm,f,dm,dfm,dddfdfsd,sd,sddf,df,ldf
PPTX
Joins and Views.pptx
PPTX
askndmf,dskmlf,bvdmk,v nmdsvjkmc,dvjkcmsdcvjnkmd
PPT
joins IN DATA BASE MANAGEMENT SYSTEMSppt
PDF
Structured query language(sql)
PDF
Sql basics v2
PDF
Sql overview-1232931296681161-1
PPTX
joins dbms.pptx
PPTX
PDF
SQL JOINS
PPTX
PPTX
Joining
PPTX
Interactive SQL and Advance SQL SQL Performance Tuning.pptx
PPTX
Sql server ___________session_11-12(joins)
PPT
MS SQL Server.ppt sql
PPTX
OracleSQLraining.pptx
PDF
MODULE 1.pdf foundations of data science for final
ODT
Sql joins
PPTX
joins and subqueries in big data analysis
SQL Training Institute in Ambala ! Batra Computer Centre
View od dffmfmfmm,dm,f,dm,dfm,dddfdfsd,sd,sddf,df,ldf
Joins and Views.pptx
askndmf,dskmlf,bvdmk,v nmdsvjkmc,dvjkcmsdcvjnkmd
joins IN DATA BASE MANAGEMENT SYSTEMSppt
Structured query language(sql)
Sql basics v2
Sql overview-1232931296681161-1
joins dbms.pptx
SQL JOINS
Joining
Interactive SQL and Advance SQL SQL Performance Tuning.pptx
Sql server ___________session_11-12(joins)
MS SQL Server.ppt sql
OracleSQLraining.pptx
MODULE 1.pdf foundations of data science for final
Sql joins
joins and subqueries in big data analysis
Ad

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
A Presentation on Artificial Intelligence
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
cuic standard and advanced reporting.pdf
PPTX
Machine Learning_overview_presentation.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
sap open course for s4hana steps from ECC to s4
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
A Presentation on Artificial Intelligence
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Building Integrated photovoltaic BIPV_UPV.pdf
The AUB Centre for AI in Media Proposal.docx
MIND Revenue Release Quarter 2 2025 Press Release
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
cuic standard and advanced reporting.pdf
Machine Learning_overview_presentation.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Chapter 3 Spatial Domain Image Processing.pdf
A comparative analysis of optical character recognition models for extracting...
sap open course for s4hana steps from ECC to s4

Structured Query Language (SQL)

  • 2. GROUP MEMBERSADIL SHAKIRHAMMAD YOUSAFAMMAR YASIR HASEEB KHALIDAWAIS AFTAB BUTTMUDDASIR ABIDBILAL AHMED MOHAMMED IMRANFAIZA KHALID RAAZIA IRSHADHAMMAD RASHEED ZULQARNAIN BAJWA
  • 6. Database“An organized collection of information”OR “Set of tables each having different class of data.”
  • 7. Structured Query Language ( SQL ) A language to communicate with the database
  • 8. A tool to retrieve the required information from database
  • 10. Syntax of SQL is in plain English
  • 11. To question the databaseWhat SQL can do?With SQL you can:1. Execute queries against a database2. Perform CRUD function:CREATE New databasesNew tables in a database  Records in a databaseREAD Retrieve data from a database
  • 12. UPDATE Update Records in a database
  • 13. DELETE  Delete Records from a database
  • 19. 1-1
  • 20. 1-m SYNTAXStatementTable NameConditionSELECT CustomerName, City, Country FROM Customer WHERE Country=‘USA’ColumnsFROM ClauseWHERE ClauseSELECT Clause
  • 25. Function QueriesFunction queries in SQL involve manipulating functions in SQL statements to retrieve desired information from the database.Such function queries are of two broad categories:Aggregate Function Queries
  • 27. SQL JOIN QUERIESSQL joins are used to query data from two or more tables, based on a relationship between certain columns in these tables.
  • 28. Inner JoinThe INNER JOIN keyword return rows when there is at least one match in both tables.SyntaxSELECT column_name(s)FROM table_name1INNER JOIN table_name2ON table_name1.column_name=table_name2.column_name
  • 29. Outer JoinThe OUTER JOIN clause differs from the INNER JOIN in that rows are returned even when there are no matches through the JOIN critieria on the second table. Difference Explained:Assuming you're joining on columns with no duplicates, which is by far the most common case:An inner join of A and B gives the result of A intersect B, i.e. the inner part of a venn diagram intersection.An outer join of A and B gives the results of A union B, i.e. the outer parts of a venn diagram union.
  • 30. Left Outer JoinThe LEFT JOIN keyword returns all rows from the left table (table_name1), even if there are no matches in the right table (table_name2)SyntaxSELECT column_name(s)FROM table_name1LEFT JOIN table_name2ON table_name1.column_name=table_name2.column_name
  • 31. Right Outer JoinThe RIGHT JOIN keyword Return all rows from the right table (table_name2), even if there are no matches in the left table (table_name1)SyntaxSELECT column_name(s)FROM table_name1RIGHT JOIN table_name2ON table_name1.column_name=table_name2.column_name
  • 32. Full JoinThe FULL JOIN keyword return rows when there is a match in one of the tables.SyntaxSELECT column_name(s)FROM table_name1FULL JOIN table_name2ON table_name1.column_name=table_name2.column_name