It would help if you say what version of SQL you are working on and what database system this 'reference cursor' comes from (or even better, explain what it does).
By nested tables do you mean self referencing tables, in other words records that have foreign keys that point to other records in the same table?
Give an example of what you want to do and you might get a better response.
Peter