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

Join_date is the column in Emp table.

select * from emp
where join_date between sysdate and sysdate - 60

Is This Answer Correct ?    2 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of join is join?

905


Is inner join same as self join?

1064


Explain alias in sql?

997


What are the different types of sql commands?

1065


how to get a list of all tables in a database? : Sql dba

922


Can 2 queries be executed simultaneously in a distributed database system?

1084


What is a column in a table?

1064


How do you drop a trigger?

924


Differentiate between syntax and runtime errors.

1120


Does mysql_real_escape_string prevent sql injection?

910


Why should I use postgresql?

973


What is the purpose of cursors in pl/sql?

1081


how to shut down the server with 'mysqladmin'? : Sql dba

958


Explain constraints in sql?

984


How to write pl sql program in mysql command prompt?

1009