Рет қаралды 20,789
In this video we will learn how to deal with full outer joins. In full outer join we need to deal with lot of null values so it is important to understand this concept.
This question was also asked to me in Deloitte Interview way back in 2017.
Here is the ready script:
create table emp_2020
(
emp_id int,
designation varchar(20)
);
create table emp_2021
(
emp_id int,
designation varchar(20)
)
insert into emp_2020 values (1,'Trainee'), (2,'Developer'),(3,'Senior Developer'),(4,'Manager');
insert into emp_2021 values (1,'Developer'), (2,'Developer'),(3,'Manager'),(5,'Trainee');
#sql #interview #fullouterjoin #outerjoin #fulljoin