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
If I have a view which is a join of two or more tables, can this view be updateable?
Is db2 relational database?
what is db2 restart?
Is db2 a programming language?
How do I connect my db2 database to ibm?
How to run db2 command in windows?
What is blu acceleration in db2?
Why cursor is used in db2?
What is consistency token in db2?
Define 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.
How can record locking be achieved in those DB2 versions which do not support it?
How many databases are there?
What is copy pending and check pending in db2?
Is the primary key a clustered index?