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
How do you explain an index number?
What is a null value?
How do I run a program in pl sql?
Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?
Define implicit and explicit cursors.
What is the most common sql injection tool?
What is snowflake sql?
what is union? : Sql dba
What is a loop in sql?
how to decrement dates by 1 in mysql? : Sql dba
How do you rename a table in sql?
column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.
What are two statement types in sql?
How do I clear the screen in sql plus?
How does postgresql compare to oracle/db2/ms sql server/informix?