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

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 ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is db2 restart?

1695


What are bind parameters in db2?

613


What's The Error Code For Unique Index Voilation?

657


Explain various types of locks in db2?

694


What is buffer pool in the db2 database?

623






What is node in db2?

610


What is db2 plan table?

622


can any one provide me the link for the db2 v7 & db2 v8 manual for Z/os? i need to know about the syntax of REORG in both versions & need to know the difference as well

1809


When reorg is used?

680


Define declaration generator (dclgen).

669


What is ibm db2 used for?

603


Can we insert update delete in view?

579


Outputs of explain are with matchcols = 0. What does this signify?

622


What is db2 and what is the use of db2 optimizer?

659


What is dbrm in db2 database?

591