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 / satish

select * from emp where
round(months_between(sysdate,hire_date) in(1,2);

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain table and field in sql?

583


How can I change database name in sql?

531


what is 'mysqlcheck'? : Sql dba

575


What is a natural join sql?

513


What is meant by user defined function?

581






Can we commit in trigger?

549


What is an example of translating a date into julian format?

580


Why function is used in sql?

522


What is varray in pl sql?

566


What is a sql select statement?

571


How is data stored in sql?

551


What does pl sql stand for?

657


How do I turn a list into a table?

512


Is not null in sql?

560


what is commit? : Sql dba

618