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 / sdp
select * from emp
where trunc(months_between(sysdate, hiredate))=2;
| Is This Answer Correct ? | 39 Yes | 14 No |
Post New Answer View All Answers
How to read/write files from pl/sql?
how can we know the count/number of elements of an array? : Sql dba
What are literals in sql server?
What is use of package in pl sql?
Show how functions and procedures are called in a pl/sql block.
What is the need of a partition key?
What is t sql used for?
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
What are the ddl commands?
what are the different tables present in mysql? : Sql dba
What is sql dialect?
How many types of triggers are there in pl sql?
What are the advantages of indexing?
What are three advantages to using sql?
what are the authentication modes in sql server? : Sql dba