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
What is record variable?
what are the features and advantages of object-oriented programming? : Sql dba
What are the 3 types of behavioral triggers?
What is the difference between sql and mysql?
What is a string data type in sql?
How many subqueries can be nested in a statement?
What are synonyms in sql?
what is bcp? When does it used? : Sql dba
What is an alias command?
explain about mysql and its features. : Sql dba
What is sql lookup?
What is sql table?
How do you identify a primary key?
Explain the insert into statements in sql?
How to find 3rd highest salary of an employee from the employee table in sql?