Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

100% sure execute

select * from emp
where hiredate between
trunc(add_months(last_day(sysdate),-3)+1) and
trunc(add_months(last_day(sysdate),-1))

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is left join and outer join same?

1069


what is sql in mysql? : Sql dba

1192


what are the authentication modes in sql server? : Sql dba

1062


What is Difference Between Unique and Primary Key Constraints?

1105


What are records give examples?

1009


What are the methods of filing?

935


How can we implement rollback or commit statement in a trigger?

1035


What are sql commands?

1010


What is nosql example?

1034


What are pl/sql cursor exceptions?

1103


Should I use mbr or gpt?

1026


How to find 3rd highest salary of an employee from the employee table in sql?

1082


What is the difference between alter trigger and drop trigger statements?

1109


What is sql clause?

1048


List out the acid properties and explain?

949