Hello all -
DB2 UDB 9
t1 data:
t2 data
select:
How do I create the result table with unique records from t1 & matching data from t2?
I thought that inner join will do, but...obviously does not work
thanks for your help.
DB2 UDB 9
t1 data:
Code:
SSN TYPE EFF_DATE FUND
--------- ---- ---------- ------
999999999 NK 02/01/2002 DOH
888888888 NK 02/01/2002 DOH
777777777 NK 02/01/2002 DOH
666666666 NK 02/01/2002 DOH
t2 data
Code:
SSN NAME PERIOD EMPLOYER
-----------------------------------------------
888888888 WILLIAM J GREER 07/01/2002 9990001
888888888 WILLIAM J GREER 07/01/2002 9990001
888888888 WILLIAM J GREER 08/01/2002 9990001
888888888 WILLIAM J GREER 08/01/2002 9990001
select:
Code:
SELECT t1.ssn, t1.type, t2.employer
FROM UMASS_NK T1, UMASS_CONTR T2
WHERE T1.SSN=T2.SSN
FETCH FIRST 10 ROWS ONLY
How do I create the result table with unique records from t1 & matching data from t2?
I thought that inner join will do, but...obviously does not work
thanks for your help.