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 is nosql vs sql?
Can we use two order by clause in query?
What are the set operators in sql?
What are some predefined exceptions in pl/sql?
Compare sql & pl/sql
What is pl/sql language case sensitive?
how to show all tables with 'mysql'? : Sql dba
What is scalar function?
What are different clauses used in sql?
What is difference between stored function and application function?
How do you know if a relationship is 2nf?
how to check server status with 'mysqladmin'? : Sql dba
What are all the common sql functions?
What is tuple in sql?
What is a variable in sql?