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 the latest version of ibm db2?
by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?
What is the difference between bind and rebind in db2?
Which component is used to execute the sql statements?
What is multi row fetch in db2?
How do I copy a table in db2?
What is dpf in db2?
What is declare cursor?
What types of tables are there in the db2 database?
Outputs of explain are with matchcols = 0. What does this signify?
Which command is used to connect to a database in DB2 ? Give the Syntax.
What is difference between alias and synonym in db2?
What is ibm db2 database?
What is runstats utility in db2?
How connect db2 database to datastage?