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 / harsha
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 ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is db2 optimizer?
What is runstats db2?
What is the physical storage length of the data types: date, time, timestamp in the db2 database?
What os does db2 run on?
What is a trigger in the db2 database?
Which is faster delete or truncate?
What is copy pending status in db2?
What is access path in db2?
What is the difference between db2 and oracle?
Explain various types of locks in db2?
What types of tables are there in the db2 database?
Mention the definition of cobol in varchar field.
What is db2 bind process?
What are the contents of a dclmgen?
What are catalog tables in db2?