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 / ramesh

select e.name,e.deptname,d.doj from emp_table e,dept_table d
where e.deptno=d.deptno and doj between '01-jan-2007' and
'01-jan-2008';

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find the number of rows in a db2 table?

644


What is the difference between bind and rebind in db2?

858


What is a cursor in programming?

598


Is db2 a database?

574


How do you pull up a query which was previously saved in qmf?

678






What is null in db2?

575


What is consistency token in db2?

644


When reorg is used?

678


How do I import data from excel to db2?

617


Why do chiropractors use drop table?

664


What does db2 stand for?

598


Which components manage deadlocks in db2?

615


Can you use max on a char column?

640


What is cascading rollback?

625


What is dbrm? What it contains?

682