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 / amlan roy
Select...........
from....
........
where DEPT_TABLE.DEPNO = EMP_TABLE.DEPNO.
AND DOJ between '01/01/2007' and '01/01/2008'
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is clone table?
Who uses db2?
What is the use of db2 optimizer?
What does db2 stand for?
Is db2 a mainframe database?
In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?
What is cobol db2?
What is the difference between using bind () and rebind () methods of naming class?
How do you select a row using indexes in db2?
What are the contents of a dclmgen?
What is the purpose of using commit?
How can you quickly find out the # of rows updated after an update statement?
What is dbrm? When it will be created?
Is db2 a programming language?
If I have a view which is a join of two or more tables, can this view be updateable?