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

select * from af where months_between(sysdate,hiredate)<=2

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define join and name different types of joins?

522


Why left join is used in sql?

522


what is the difference between clustered and non clustered index in sql? : Sql dba

556


What are different functions in sql?

521


what are the differences between char and nchar? : Sql dba

595






How do you exit in sql?

595


What is the difference between join and natural join?

478


What is structural independence and why is it important?

551


Explain what is sql*plus?

670


What is the difference between inner join and natural join?

513


What are the three forms of normalization?

537


Why do we use procedures?

519


What is union?

656


Why do we need cursors in pl sql?

525


Does a primary key have to be a number?

522