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
what is the role of the cursor in db2?
What is the use of predicate?
What is null value in db2?
When do you specify the isolation level?
What is data manager?
What is runstats and reorg in db2?
Following a db2 update statement, what is the quickest way to compute the total number of updated rows?
What is dclgen in db2?
When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?
What is db2 bind?
How to execute stored procedures?
What is bind in db2?
What is the difference between cursor and select statement?
What is null in db2?
What is precompiler in db2?