rivet Posted January 25, 2012 Posted January 25, 2012 Working on a simple form builder. This will act as a preference to what type of items belong on a form depending on the event type and form. section (events) section_type (fund raiser, members dinner) form (proposal, claim) form_Item (field1, field2, etc. ) The question is, since the will only be a few records (100 maybe) would you just make this a single table with a bunch of self relationships, or four tables? SINGLE TABLE id id_parent name type
Rick Whitelaw Posted January 29, 2012 Posted January 29, 2012 The question, at least for me, is unclear. Perhaps you could repost it.
rivet Posted January 29, 2012 Author Posted January 29, 2012 no worries, I was thinking of reducing 4 tables into 1, but its just back practice. I must have been tired. Thanks
Ron Cates Posted January 31, 2012 Posted January 31, 2012 I don't quite understand the question either but if it's a question of multiple tables or one maybe we could use people as an example. You may have Students, Teachers, Parents and so on. But ultimately they are all people. So rather than having tables for Students, Teachers, Parents and so on they can all be included in one table of people where each record has a field such as type that would indicate what type of person they are. So in your case. If the 4 tables all hold data that is essentially the same then yes you may want to go with one table with a type field to detirmine the difference.
rivet Posted February 1, 2012 Author Posted February 1, 2012 Yes that was the idea. And for people I could see it working well, but for my tables only the structure (id, name, id_parent) would be common. I will look at it again. Thanks
Recommended Posts
This topic is 4740 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now