DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: How to use a cursor...????

Threaded View

  1. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Quote Originally Posted by alankay246 View Post
    ...You should create a cursor called
    emp_cursor that retrieves the salaries of employees in ascending
    order. The salaries should not be duplicated. In the executable section,
    open the cursor and fetch the least n salaries and insert them into the
    LEAST_EARNERS table. Include any appropriate exceptions.
    Looks like your professor has been talking about cursors for the past few classes, take a look here: http://www.oracle.com/technetwork/is...ql-088608.html

    Please note that in the real world you do not have to have a cursor to solve this one.
    Last edited by PAVB; 05-04-2012 at 07:25 AM. Reason: typo
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width