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 / satish
select * from emp where
round(months_between(sysdate,hire_date) in(1,2);
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What can you do with pl sql?
What are the key differences between SQL and PL SQL?
Explain the structure of pl/sql in brief.
Can we create view in stored procedure?
How does sql profiler work?
What are literals in sql server?
what is normalization? : Sql dba
What is count * in sql?
what are the differences among rownum, rank and dense_rank? : Sql dba
How do you write a subquery?
How do I delete a trigger?
Does oracle use sql?
what are numeric data types? : Sql dba
What is a stored procedure in sql with example?
What are the usages of sql?