Sort database names & maintain referential integrity

From: <domenm_at_my-deja.com>
Date: 2000/07/05
Message-ID: <8jv3qv$vt7$1_at_nnrp1.deja.com>#1/1


Hi!
I have very tricky problem here. I have a short list of tables and I want to sort their names in a way to maintain their referential integrity. For example:
table1 is master of table3
table3 is master of table4, table5 and table6 table2 is also master of table3
table5 is master of table7 ...

So, is there any known algorithms to sort the tables in the right way?

Any help will sincerely be appreciaed!
Domen

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Wed Jul 05 2000 - 00:00:00 CEST

Original text of this message