Am trying to generate a hierarchy of tables in our sybase database. I have a perl script that does this but it is not very efficient. The perl script gets the constraint information for every table but it is a performace hog when it comes to recursive information retrieval and traversal. Would it be possible to generate this hierarchy in a single sql query or stored procedure. If so, any help in this regard is greately appreciated. Thanks