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

Why do chiropractors use drop table?

664


What is phantom read in db2?

647


How can deadlocks be resolved?

544


Explain packages.

666


i tried to copy some records from microsoft excel to as-400 physical file through "Bosanova" emulation. Out of 14000 records only 12000 records copies and subsequently programe started to hang. Then, i closed the program forcefully. I did' under stand the problem. Also when i try to compile the physical file it is showing as "The file in use". How to overcome this problem?

2051






What is the purpose of using commit?

622


List some fields from sqlca?

615


What is cascading rollback?

625


What is cursor with hold option in db2?

614


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

634


What is the result of open cursor statement?

640


What is the difference between drop table and delete table?

558


How do I delete a table in db2?

651


Can we insert update delete in view?

579


Mention the location where the output received from explain statement is stored.

633