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

How to connect to oracle using service name instead of sid?

996


How to create additional tablespaces for an new database?

1011


query optmization techniques and quwry analyser+projects+ppts

2403


Why is oracle database so popular?

978


What are the differences between primary key and unique key?

994


How many file formats are supported to export data?

1195


How to load data through external tables?

1120


How to find out what oracle odbc drivers are installed?

1024


How to create a testing table in oracle?

979


What is meant by raw datatype?

1046


How to use "in" parameter properly?

1049


What are the components of logical database structure in oracle database?

1066


how to make an oracle object

2339


How to create an oracle testing table?

1047


How many types of synonyms in Oracle?

1104