KR editions 78 to 79
KR-78 (DB2 Joins)
A little info on databases (DB2).
There are different types of joins (a join is basically a combination of 2/more tables - it's used when we cannot get the data we want from a single table alone). Did you know that:
SELECT * FROM emp_t A, sal_t B WHERE A.grade = B.grade;
is actually equivalent to:
SELECT * FROM emp_t A JOIN sal_t B ON A.grade = B.grade;
KR-79 (DB2 Joins - II)
Continuing with joins.....
SELECT * FROM dep_t LEFT OUTER JOIN emp_t ON head_num = emp_num;
Go back to the main contents page
Copyright © 2020 Sethu Subramanian All rights reserved. Reach me via email at ssbell @ gmail.com