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 are the two characteristics of a primary key?
what is “go” in t-sql? : Transact sql
How to set up sql*plus output format in oracle?
What is a unique key?
Which tcp/ip port does sql server run?
Why do we use sqlite?
Explain what is a database?
What does trigger mean in slang?
How do I remove sql plus from windows 10?
what are the different functions in sorting an array? : Sql dba
what is the syntax for using sql_variant_property? : Transact sql
What is sql*loader?
what is difference between delete and truncate commands? : Sql dba
What is the use of index in hive?
Difference between truncate, delete and drop commands?