JOINS ➤ INNER JOIN :- This join returns when there is at least one match in both the Tables. Example: SELECT * FROM TABLE1 T1 INNER JOIN TABLE T2 ON T1.COL1=T2.COL1; ➤ OUTER JOINS ➧Left Outer Join:- This join returns all the rows from the left table in conjunction with matching rows from the right table.If there are no columns matching in right table it returns, NULL values. Example: SELECT * FROM TABLE1 T1 LEFT OUTER JOIN TABLE2 T2 ON T1.COL1=T2.COL1; ➧Right Outer Join:- This join returns all the rows from the right table in conjunction with matching rows from the left table.If there are no columns matching in left table, it return NULL values. Example: SELECT * FROM TABLE1 T1 RIGHT OUTER JOIN TABLE2 T2 ON T1.COL1=T2.COL1; ➧Full Outer Join:- This join combines left outer join and right outer join.It returns row from either table when the condition are met and return null values when there is no match
Learn SQL from basic to advance.