Category: SQL Join
-
SQL Cross Join
Now let us see take a deeper dive into the cross join in SQL with the help of examples. All the queries in the examples will be written using the MySQL database. Consider we have the following tables with the given data: Table 1: MatchScore Player Department_id Goals Franklin 1 2 Alan 1 3 Priyanka…
-
SQL FULL JOIN
The SQL full join is the result of combination of both left and right outer join and the join tables have all the records from both tables. It puts NULL on the place of matches not found. SQL full outer join and SQL join are same. generally it is known as SQL FULL JOIN. SQL…
-
SQL RIGHT JOIN
Now let us see take a deeper dive into the right join in SQL with the help of examples. All the queries in the examples will be written using the MySQL database. Consider we have the following tables with the given data: Table 1: employee EmployeeID Employee_Name Employee_Salary 1 Arun Tiwari 50000 2 Sachin Rathi…
-
SQL Left Join
Now let us see take a deeper dive into the left join in SQL with the help of examples. All the queries in the examples will be written using the MySQL database. Consider we have the following tables with the given data: Table 1: employee EmployeeID Employee_Name Employee_Salary 1 Arun Tiwari 50000 2 Sachin Rathi…
-
SQL OUTER JOIN
Now let us take a deeper dive into the different types of outer join in SQL with the help of examples. All the queries in the examples will be written using the MySQL database. Consider we have the following tables with the given data: Table 1: employee EmployeeID Employee_Name Employee_Salary 1 Arun Tiwari 50000 2…
-
SQL JOIN
As the name shows, JOIN means to combine something. In case of SQL, JOIN means “to combine two or more tables”. The SQL JOIN clause takes records from two or more tables in a database and combines it together. ANSI standard SQL defines five types of JOIN : In the process of joining, rows of both tables are…