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 / venkat
select *from emp where floor(months_between
(sysdate,hiredate))=2;
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
how is myisam table stored? : Sql dba
What is a procedure in pl sql?
What is the purpose of using pl/sql?
What are the most important characteristics of pl/sql?
Explain the rollback statement?
What types of commands can be executed in sql*plus?
Is left join same as inner join?
What is procedure in pl sql?
What does stand for in sql?
Are stored procedures faster than queries?
Difference between truncate, delete and drop commands?
Do we need to create index on primary key?
What is difference between rank () row_number () and dense_rank () in sql?
what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba
Which are the different types of indexes in sql?