> > I was thinking of doing it in 1 table where sub codes link back to > > the parent. Are there other, better ways to do this? This allows some > > flexibility I belive, such as adding new levels if needed, but it > > also might be kind of slow to parse a given code.
Self-joined tables make sense when all elements are the same thing: employees and managers and supervisors can all be in teh person table, with a hierarchical self-join. This system sounds more like a system-module-item hierarchy, and I'd favor three tables: System: pk, name, etc. Module: pk, systemfk, name, etc. Item: pk, modulefk, name, etc. -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

