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

select * from emp where
round(months_between(sysdate,hire_date) in(1,2);

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why self join is used in sql?

916


how can we destroy the cookie? : Sql dba

959


What is meant by cursor in sql?

940


Why we use sql profiler?

913


What are the three forms of normalization?

993


When to use inner join and left join?

903


what is the difference between inner and outer join? Explain with example. : Sql dba

971


Enlist the advantages of sql.

937


Is postgresql a nosql database?

1074


What is the use of primary key?

952


what are the t string functions available in tsql? : Transact sql

945


Can you join views in sql?

896


What is the difference between nvl function, ifnull function, and isnull function?

1050


What is 19 null in sql?

897


What is recursive stored procedure?

1046