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
Which is faster subquery or join?
What is pl sql package?
Mention what problem one might face while writing log information to a data-base table in pl/sql?
What is procedure and function?
What is sql stand for?
Is record in oracle pl sql?
what is the syntax for using sql_variant_property? : Transact sql
What will you get by the cursor attribute sql%notfound?
What is transaction control language (tcl)?
What is procedure explain with example?
What are the different type of joins in sql?
Is join and inner join the same?
How to get each name only once from an employee table?
What is rename in sql?
Mention what does plv msg allows you to do?