Hmmm. That looks pretty good. I'll see if it will fit with the rest of the logic.
Thanks! M!ke -----Original Message----- From: Chris Terrebonne [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 10:59 AM To: CF-Talk Subject: Re: Database Model Suggestions - Elections Off the cuff, I would do something like this: Candidate --------------------------- id (int) name (varchar) parent_ID (int) dependsOnParent (bit) parent_ID would signify which Prez the VP is affiliated with. dependsOnParent would signify if the child (VP) can run alone or not. The query would be something like this: SELECT p.ID, p.name, c.ID as Child_ID, c.Name, c.Parent_ID, c.dependsOnParent FROM Candidate p LEFT OUTER JOIN Candidate c on (c.parent_ID = p.ID) WHERE p.Parent_ID = 0 OR (p.Parent_ID = 1 AND c.dependsOnParent = 0) Something like that should work. HTH, Chris ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200498 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

