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

What is the main difference between sql and pl/sql?

1148


Why do we need databases?

1085


How do I edit a stored procedure?

1046


what does myisamchk do? : Sql dba

1079


Can you call pl/sql package functions from within a fast formula?

1082


Can we change the table name in sql?

1000


What is pl sql in oracle?

1094


What are variables in pl sql?

1230


Can we join more than 2 tables in sql?

1093


Is sqlexception checked or unchecked?

1009


What is dml and ddl?

1009


How does stored procedure reduce network traffic?

1064


Which nosql database is best?

1023


Is it possible to link two groups inside a cross products after the cross products group has been created?

1069


what is the syntax for using sql_variant_property? : Transact sql

1083