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

select * from employee where (sysdate-hiredate) <=60

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many triggers can be applied on a table?

495


Why do we use triggers?

506


How many joins can you have in sql?

502


What is sql*loader?

562


How do I get sql certification?

518






What is difference between stored function and application function?

588


Mention what are different methods to trace the pl/sql code?

547


What is the difference between null value, zero, and blank space?

545


What does count (*) mean in sql?

1078


table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

3317


Explian rowid, rownum?

553


Do we need to rebuild index after truncate?

520


what is cross join? : Sql dba

560


How many columns should be in an index?

510


How to get each name only once from an employee table?

597