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

Select a.Name,a.DeptName,b.doj From Emp_Table as
a,Dept_Table as b Where a.Deptno=b.deptno and b.doj
between '01-jan-2007' And '01-jan-2008'

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I create a view in db2?

606


What is the use of predicate?

588


What is node in db2?

610


What is the role of the data page in the db2 database?

591


How do you select a row using indexes in db2?

647






What is nvl in db2?

630


Describe major components of db2?

642


What is cobol db2?

572


How can record locking be achieved in those DB2 versions which do not support it?

627


What is a system catalog table in db2?

590


What is the difference between using bind () and rebind () methods of naming class?

796


What does db2 mean?

589


Explain package in db2 and its advantages?

600


How do I delete a column in db2?

681


What is db2?

743