I am building an electronic bulletin board at work. A database is needed to store the information about the items submitted, using MS SQL Server. I feel that I should make the database just 1 table with an itemType field, because most of the data is the same for all item types-vehicles, real estate, home furnishings, events (tickets), and miscellaneous. Only a few unique item fields are needed. My collegue feels that I should make a separate table for each item Type. My 1 table idea would look like this:
Table: tblItem
Fields:
itemID (PK)
userID (PK)
itemType (vehicle, real estate, home furn, events, misc)
itemName
itemDesc
itemPrice
itemYear
city
state
saleRentWant (for sale, for rent, or wanted)
poc (point of contact)
pocHmPhone
pocWkPhone
pocEmail
Approved (y/n)
reType (condo, townhouse, single family, etc.)
vehicleType (car, truck, motorcycle, RV, etc.)
vehicleMake
vehicleModel
vehicleMileage
timeStamp
Where as if I made a separate table for each type of item, I would have redundant fields--all the item___ fields, all poc___ fields, approved, location fields, etc.--in each table.
I would like feedback on which is the right way to build the database. Everyone's feedback is appreciated. Thank you.
--mumzer
Table: tblItem
Fields:
itemID (PK)
userID (PK)
itemType (vehicle, real estate, home furn, events, misc)
itemName
itemDesc
itemPrice
itemYear
city
state
saleRentWant (for sale, for rent, or wanted)
poc (point of contact)
pocHmPhone
pocWkPhone
pocEmail
Approved (y/n)
reType (condo, townhouse, single family, etc.)
vehicleType (car, truck, motorcycle, RV, etc.)
vehicleMake
vehicleModel
vehicleMileage
timeStamp
Where as if I made a separate table for each type of item, I would have redundant fields--all the item___ fields, all poc___ fields, approved, location fields, etc.--in each table.
I would like feedback on which is the right way to build the database. Everyone's feedback is appreciated. Thank you.
--mumzer