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 / s
select name.deptname.doj from emp_table innerjoin dept_table
on emp_table.deptno = dept_table.deptno
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
How to find the number of rows in db2 tables?
What is the syntax for seeing the columns and data types of a table in the db2 database?
Which component is responsible for db2 startup and shutdown?
When do you specify the isolation level?
Comment whether the cursor is closed during commit or not.
What is dbrm?
How do I delete a table in database?
What are foreign keys in db2?
Mention a credible reason why select* is never given preference in an sql program that has been embedded.
What is the role of schema in the db2 database?
What is the latest version of ibm db2?
What is the use of runstats in db2?
What db2 400?
What is dbrm in db2 database?
Discuss about db2 bind?