Professional Documents
Culture Documents
Employee Id : 1768455
Index :
◦ A Brief Introduction about SQL
◦ SQL Joins
◦ Simple or Inner Join
◦ Outer Join :
1) Left Outer Join
2) Right Outer Join
3) Full Outer Join
◦ Self Join
◦ Cross Join
A Brief Introduction About SQL
➢ SQL stands for Structured Query Language.
➢ It is designed for managing data in a Relational Database Management System (RDMS).
➢ SQL can execute queries against a database
➢ SQL can retrieve data from a database
➢ SQL can insert records in a database
➢ SQL can update records in a database
➢ SQL can delete records from a database
➢ SQL can create new databases
➢ SQL can create new tables in a database
➢ SQL can create stored procedures in a database
➢ SQL can create views in a database
➢ SQL can set permissions on tables, procedures, and views
SQL Joins
◦ As the name shows, JOIN means to combine something. In case of SQL, JOIN means "to combine two or more
tables".
◦ SQL JOINS are used to retrieve data from multiple tables. A SQL JOIN is performed whenever two or more tables are
listed in a SQL statement.
◦ The SQL JOIN clause takes records from two or more tables in a database and combines it together.
◦ Different types of SQL Joins:
INPUT OUTPUT
Cross Join
◦ The CARTESIAN JOIN or CROSS JOIN returns the Cartesian product of the
sets of records from two or more joined tables. Thus, it equates to an inner
join where the join-condition always evaluates to either True or where the
join-condition is absent from the statement.
INPUT OUTPUT