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

select name.deptname.doj from emp_table innerjoin dept_table
on emp_table.deptno = dept_table.deptno

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are db2 objects?

635


What is a cursor in programming?

592


How can you quickly find out the # of rows updated after an update statement?

629


What is isolation level in db2?

577


Mention the different locking levels that are available in db2.

639






What is check constraint in db2?

603


What is the syntax for seeing the columns and data types of a table in the db2 database?

576


Is ibm db2 free?

571


Which component is used to execute the sql statements?

617


How to execute stored procedure in db2 command editor?

528


Are view updateable?

627


What is temporal table in db2?

601


How do you eliminate duplicate values in db2?

679


What is deadlock in db2?

577


What does runstats do in db2?

607