Q. How is a left join different from a natural join? Give example.


Answer:-

Left Join: - A form of join where all the rows (even non-matching ones) from the first table are returned in the result.
Example:-
Select * from Student LEFT Join School on Student.roll = Schooll.roll;

Natural Join: - A join where identical column from both tables is shown just one in the result.
Example:-
Select * from Student Natural Join School;

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post