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

What is the scope of a local variable?

1123


What is set verify off in oracle?

1160


What are the restrictions on external table columns?

1111


How to sort output in descending order in oracle?

1105


How to use in conditions in oracle?

1116


What are named parameters?

1146


What is sequence?

1137


Is truncate autocommit in oracle?

1148


Explain the use of owner option in exp command.

1100


Point out the difference between user tables and data dictionary?

1038


What is bulk collect in oracle?

1054


Compare and contrast between sql and sql server and explain its various functions?

1019


How to insert multiple rows with one insert statement in oracle?

1135


What types of joins are used in writing subqueries?

1033


What are transaction isolation levels supported by oracle?

1117