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
Write a sql query to get the third highest salary of an employee from employee_table?
Is hadoop a nosql?
What is a join?
What is scope and visibility in PL/SQL?
how many sql ddl commands are supported by 'mysql'? : Sql dba
How do I view a view in sql?
Are left and right joins the same?
Is left join faster than inner join?
How do you get column names only for a table (sql server)?
What is database migration?
what are all the different types of indexes? : Sql dba
what are date and time intervals? : Sql dba
How do I remove duplicates in two columns?
Differentiate between pl/sql and sql?
How many joins in sql?