Was thinking of creating a small application in c# but would like to hear some feedback on approaching my project with this method.
Basically I will have 2 tables in MSSQL
These are just examples....
**TableType
TableTypeID
Type
TableInfo
InfoID
TableTypeID
Name
Color
Size
TagNumber**
So when a user wants to create a new table say birds the value would go into the tabletype create an autoid and then have the Type as birds. The name for the bird, Color, size would go into the TableInfo Table.
But now lets say that they would like to create a new table called auto. So again auto would go into tabletype under the type column and then the auto’s color, size, tagnumber would all go into the next table.
Is this the right way to approach this or will this cause a lot of issues with programming in the future
Thanks
This is a weird misuse of Table Inheritance, and it’s not a good idea.
If you want to store info about birds in a relational database, you should have a table called Bird(s) that stores info only about birds. And have a different one for Autos.
You could consider using table inheritance for related types, such as Tits and Swallows