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 many databases can be created inside an instance in db2 ?
What does db2 mean?
How do I add a column to an existing table in db2?
Explain the benefits you can get from mainframe connect?
What is a db2 table?
What does a deadlock mean in DB2?
What is dclgen in db2?
Why do chiropractors use drop table?
What is precompiler in db2?
What is a system catalog table in db2?
How do I optimize a query in db2?
What is dpf in db2?
What is concurrency?
What is buffer pool in the db2 database?
How would the varchar column remarks defined?