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
How do I create a view in db2?
What is table space in db2?
How do you select a row using indexes in db2?
Explain about mirror activator disk mirroring?
What is isolation level in db2?
I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.
Is schema the same as database?
Are view updateable?
What is performance tuning db2?
What is difference between alias and synonym in db2?
What is the purpose of rollback and commit?
what is db2 restart?
What is the use of runstats in db2?
What is the use of commit in db2?
What is the role of the data page in the db2 database?