www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
SQL Stands
for
SQL
Structured Query Language
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
What Is SQL
Structured Query Language (SQL) is a
standard computer language for relational
database management and data
manipulation. SQL is used to query, insert,
update and modify data
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
Definition Of
SQL
My SQL is an open source relational database
management system (RDBMS) based on
Structured Query Language (SQL). LAMP is a
Web development platform that uses Linux as the
operating system, Apache as the Web
server, MySQL as the relational database
management system and PHP as the object-
oriented scripting language
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
How Is SQL
Used
SQL is used to communicate with a database.
According to ANSI (American National
Standards Institute), it is the standard
language for relational database management
systems. SQL statements are used to perform
tasks such as update data on a database, or
retrieve data from a database.
Example Of SQL
Structured Query Language (SQL) is a
specialized language for updating, deleting, and
requesting information from databases. SQL is an
ANSI and ISO standard, and is the de facto standard
database query language. It is widely used in both
industry and academia, often for enormous, complex
databases
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
What is SQL Queries in
DBMS
Query languages are used to make queries in a database,
and Microsoft Structured Query Language (SQL) is the
standard. In a relational database, which contains
records or rows of information,
the SQL SELECT statement query allows the user to
choose data and return it from the database to an
application.
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
SQL Join Queries
SQL Join
Outer Join
Left Join
Right Join
Inner Join
Full Join
Left Join
LEFT JOIN: This join returns all the rows of
the table on the left side of the join and matching rows
for the table on the right side of join. The rows for
which there is no matching row on right side, the
result-set will contain null. LEFT JOIN is also known
as LEFT OUTER JOIN.
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
What Is the Meaning Of
Syntax In SQL
SQL - Syntax - (Speaking SQL) Syntax,
by definition, means the study of linguistic rules and
patterns. Punctuation, spaces, mathematical
operators, and special characters have
special meaning when used inside
of SQL commands and query statements
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
OutputExample Of Queries
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
Right Join
RIGHT JOIN is similar to LEFT JOIN. This join
returns all the rows of the table on the right side of the
join and matching rows for the table on the left side of
join. The rows for which there is no matching row on left
side, the result-set will contain null. RIGHT JOIN is also
known as RIGHT OUTER JOIN
Syntax:-
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
Output
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
Inner Join
INNER JOIN: The INNER JOIN
keyword selects all rows from both the
tables as long as the condition satisfies.
This keyword will create the result-set by
combining all rows from both the tables
where the condition satisfies i.e value of
the common field will be same.
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
Example Of Inner
JoinThis query will show the names and age of students enrolled in different
courses.
Course Name Age
1 Harsh 19
2 Rahul 19
3 Kunal 20
2 Samar 19
1 Karan 19
FULL JOIN: FULL JOIN creates the result-
set by combining result of both LEFT JOIN and
RIGHT JOIN. The result-set will contain all the
rows from both the tables. The rows for which
there is no matching, the result-set will
contain NULL values.
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
Syntax:
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
Output
Example Of Full
Join
Types Of SQL
DDL (Data Definition Language)
DML (Data Manipulation Language)
DQL (Data Query Language)
DCL (Data Control Language)
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
About Us
We have our own Centre library that has sufficient
books of great authors for our students. Notes
prepared by our teachers are provided to every
student for their review. We also provide particular
software to our students on which they are pursuing
their course
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com
www.batracomputercentre.com
PH:9729666670 E-Mail.info.jatinbatra@gmail.com

Presentation on SQL At Batra Computer Cente