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 is primary and foreign key?
Explain what is sql?
What are different types of statements supported by sql?
What are the different type of joins in sql?
What is minus?
What is materialized view in sql?
Is a secondary key the same as a foreign key?
what is a database lock ? : Sql dba
what is a cursor? : Sql dba
What is prepared statement in sql?
What is the maximum number of rows in sql table?
How many primary keys can a table have?
What is t sql in sql server?
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
If a cursor is open, how can we find in a pl/sql block?