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

select * FROM(SELECT ENAME, Abs(to_date('&DATE' ,'dd/mm/yy')- HIREDATE) AS DATES FRom EMP) where dates<60;

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is sql used in oracle?

1037


What is the difference between cluster and non-cluster index?

1157


What does rownum mean in sql?

1090


What is scalar function?

1096


What are different types of triggers?

1181


What is java sql driver?

1182


How many types of privileges are available in sql?

1403


Why indexing is needed?

1044


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

1162


Write a sql select query that only returns each name only once from a table?

1077


How to fix oracle error ora-00942: table or view does not exist

1084


What does stand for in sql?

1024


Which join condition can be specified using on clause?

1013


How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?

1146


What does count (*) mean?

986