I want to display the employees who have joined in last two
months. (It should be executed randomly means If I execute
the query in March it should display Jan and Feb joined
employees. Same query if i execute in Feb, 2007 it should
display dec, 2006 and jan 2007 joined employees.
Answer Posted / sdp
select * from emp
where trunc(months_between(sysdate, hiredate))=2;
| Is This Answer Correct ? | 39 Yes | 14 No |
Post New Answer View All Answers
What are different types of keys?
Explain commit, rollback and savepoint.
is it possible to pass an object or table to a procedure as an argument?
How many types of cursors supported in pl/sql?
Which tcp/ip port does sql server run?
How can you load microsoft excel data into oracle? : aql loader
How can I tell if sql is running?
What's the difference between inner join and left join?
What is a string data type in sql?
Explain what is a subquery ?
How does cross join work in sql?
Can a table have no primary key?
Is nosql faster than sql?
what is an index? : Sql dba
What is parallel hint?