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
How to look at the current sql*plus system settings?
How many types of functions are there in sql?
What is a trigger word?
how many groups of data types? : Sql dba
What is index example?
Can we join tables without foreign key?
What do we need to check in database testing?
Can we write dml inside a function in sql server?
What is plpgsql language?
What are instead of triggers?
What is the difference between delete and truncate statement in sql?
What is auto increment feature in sql?
What is a scalar value in sql?
what is the difference between delete and truncate commands? : Sql dba
What are local and global Indexes and where they are useful.