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 have a table emp. There is only one column in the table.
In that , there are only three rows in that column.
The value in the first row is 'A' and the value in the
second row is 'B' and the third row is 'C'. Now, my question
is ,

How will you write a select query to display the output as
B
C
A

Note: order by cannot be used coz it gives us output as CBA.
But the output should be BCA.

Answer Posted / eswar reddy

declare one cursor ,PL/SQL TABLE
IN DBMS MENTIONED PRIOR,LAST,FIRST

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add a new column to an existing table in oracle?

1186


How to upsert (update or insert into a table)?

1042


Differentiate between translate and replace?

1186


How can we find out the current date and time in oracle?

1129


How can you use check constraints for self referential integrity?

1017


Explain an exception and its types?

1134


What is the max number of columns in an oracle table?

1046


How do I use unicode codesets with the weblogic jdriver for oracle driver?

1124


Explain the use of grant option in exp command.

1106


15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.

2354


How to get a list of all background sessions in the database?

1038


How do I find my oracle client driver version?

1093


What is the data type of dual table?

1063


What to do if the binary spfile is wrong for the default instance?

1107


Can the query output be sorted by multiple columns in oracle?

1052