I HAVE 2 TABLES ONE IS EMP_TABLE AND ANOTHER
DEPT_TABLE.EMP_TABLE CONTAINS NAME,DEPTNO,DEPTNAME,LOCATION
AND DEPT_TABLE CONTAINS DEPTNO,DOJ(DATE OF JOINING).I WANT
TO DISPLAY NAME,DEPTNAME,DOJ AND WHO ARE JOINED BETWEN 01-
JAN-2007 TO 01-JAN-2008?
Answer Posted / nimsatprasad
Try this if wrong let me know...
SELECT A.NAME
,A.DEPTNAME
,B.DOJ
FROM EMP_TABLE A
,DEPT_TABLE.EMP_TABLE B
WHERE A.DEPTNO = B.DEPTNO
AND B.DOJ BETWEEN '01-01-2007' AND '01-01-2008'
;
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What is the use of with ur in db2?
What is a system catalog table in db2?
What is a db2 tablespace?
How to get the ddl of a table in db2?
What is dclgen (declaration generator)?
What are the prerogatives?
What is the usage of open cursor command?
What is alias in db2?
How to check sequence on a table in db2?
Explain dclgen.
How do I import data from excel to db2?
What is the difference between plan and package in db2?
What is release/acquire in bind?
What is db2 purescale?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?