Row-Date-functions
Row-Date-functions
SQL> select*from R;
A B C
---------- ---------- ----------
4 2 1
3 2 4
2 1 3
1 3 5
SQL> select*from R where(C>3);
A B C
---------- ---------- ----------
3 2 4
1 3 5
A B
---------- ----------
2 1
SQL> select*from S;
U V W
---------- ---------- ----------
4 2 1
3 4 2
2 1 3
3 1 5
A B C
---------- ---------- ----------
1 3 5
3 2 4
FULL JOIN: FULL JOIN creates the result-set by combining result of both
LEFT JOIN and RIGHT JOIN.
The result-set will contain all the rows from both the tables. The rows for which
there is no matching,
the result-set will contain NULL values.
SELECT table1.column1,table1.column2,table2.column1,....
FROM table1
FULL JOIN table2
ON table1.matching_column = table2.matching_column;
A B C
---------- ---------- ----------
4 2 1
3 2 4
2 1 3
3 2 4
1 3 5