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 / venu
select * FROM(SELECT ENAME, Abs(to_date('&DATE' ,'dd/mm/yy')- HIREDATE) AS DATES FRom EMP) where dates<60;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are sql triggers used for?
how to use case expression? : Sql dba
Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?
Define join and name different types of joins?
What is a sql statement?
What is synonyms?
What is the use of function in sql?
explain access control lists. : Sql dba
What is dense_rank?
what is auto increment? : Sql dba
Why is sql better than hql?
What is a null value?
What is an implicit commit?
what are the advantages of mysql in comparison to oracle? : Sql dba
what is a trigger? : Sql dba