Hi all,
Before I move forward could someone explain which method is best for my table design. I have changed the design of all my tables as Pbismad said I should and they do work better.
The last tables holds the history of a complete room audit.
Each audit refers to one room in a hotel and the room has multiple items to audit.
A audit record would have the following example;
RoomNo
Audit date
Auditor
SeqIDxx (the item ID, which there are many)
If the audit item passes the SeqIDxx is set to 1, if it fails it is set to 2.
The way I see it is, if I have a record that holds all the audit items in one row I would then have x number of rows, one for each room.
If I design this table to store each audit item as a seperate record I would have x number of rows, one for each audit item which would be the number of audit items (46) times the number of rooms (869) which would create 39974 records for one audit.
Which is better, one record for each audit or 39974 records for each audit.
Now I know I could create tables, one for each audit item but then I would have one table (lets call it tblRoom) holding the room No and audit date and so on, and 46 tables for the item result, linking all 46 tables to tblRoom using a common column.
This is a college project and i would like to get my head around the best practice in designing the table structures.
Again, many thanks for your time.