I have four tables - A,B,C,D. Each table has 1 column: ID.
Data:
Table A = 1,2,3,4 Table B = 1,2,4,5 Table C = 2,3,4,5 Table D = 1,3,5,7 I need help in understanding the output of this SQL query:
select d.*, c.*, b.*,a.* from d left join c on d.id = c.id right join b on b.id = c.id full outer join a on a.id = b.id; I am very clear till the left join, but after that when the subsequent joins are applied, I do not understand how the result changes.