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

Display Odd/ Even number of records?

Answer Posted / nishi

Select rownum,empno,ename,salary from emp group by rownum,empno,ename,salary having Mod(rownum,2)=0 -- To display EVEN records.

Select rownum,empno,ename,salary from emp group by rownum,empno,ename,salary having Mod(rownum,2)=1 -- To display ODD records.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are truncate and delete commands same? If so why?

1081


Where are the settings stored for each instance in oracle?

1063


What is the disadvantage of User defind function?

2239


How to assign data of the deleted row to variables?

1015


How to convert characters to times in oracle?

955


 What are the oracle DML commands possible through an update strategy?

1006


Explain the use of file option in exp command.

1081


How to drop a stored function?

1085


How to recover a dropped table in oracle?

984


What privilege is needed for a user to create views in oracle?

981


What is an oracle recycle bin?

933


What is recycle bin in Oracle?

1087


What do you understand by a database object? Can you list a few of them?

971


What is a directory object?

1029


How to declare a local variable?

1055