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 a common use of group by in sql?
How do you declare a user-defined exception?
What are different types of statements supported by sql?
what is the use of set statement in tsql? : Transact sql
Define SQL and state the differences between SQL and other conventional programming Languages?
Define commit?
how to calculate expressions with sql statements? : Sql dba
How do you modify a table in sql?
Why join is faster than subquery?
Why use stored procedures?
How many commands are there in sql?
What is transaction control language (tcl)?
what is a unique key ? : Sql dba
What jobs use sql?
Does oracle roll back the transaction on an error?