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
How do I delete a trigger?
How do you bind variables in pl sql?
what is blob? : Sql dba
What is the difference between sql and t sql?
Why do we go for stored procedures?
What is normalisation in sql?
Is pl sql still used?
What is $$ in sql?
Is a secondary key the same as a foreign key?
What is forward declaration in pl sql?
What is group function in sql?
What is the use of function in sql?
What is 19 null in sql?
Explain the difference in execution of triggers and stored procedures?
where are cookies actually stored on the hard disk? : Sql dba