matt beamish
Registered User.
- Local time
- Today, 10:45
- Joined
- Sep 21, 2000
- Messages
- 215
Hi folks it's been a while since I last visited but I've not been doing much DB development in the past few years.
I've recently helped a PhD student by redesigning an access database setup for recording different types of artefacts. The database consisted of a central table holding artefact ids and some common descriptions, with a series of related tables holding attributes of different types of artefact. What could be recorded was very proscribed and the student was finding that it didn't suit the data and what she wanted to record, and it was information that had been overlooked in the past as the existing database didn't allow for new attributes.
The structure was not normalised, and there were a number of irritating design features (e.g. tables, forms and queries all with exactly the same names), but despite that it worked and is used quite widely by a number of specialists.
I have now resigned the db to one central table holding PK, find Id and common/core attributes, and two related tables, one holding text attributes, and one holding numeric attributes.
Each related table contains attributes from all the different types of artefact with pk, find id, 'attribute type' and 'attribute value', text or numeric. 'Attribute types' are stored in a separate table that combines attribute with artefact type, and is a combo on the recording form. New attributes can be defined in this table for different artefacts, and described as numeric or text.
This design is now up and running and is good for recording. It is compact and elegant. The same form can be used for different artefacts, and new types of attribute can be defined and recorded with no change to db structure.
Where I am struggling is how to get the data out in to a simple spreadsheet so that the data can be summarised. I effectively need to make tables using the "Attribute" descriptor of the two attribute tables (1 text, 1 numeric) as the field name, and the attribute value as value.
Has anyone got any thoughts?
thanks
Matt
I've recently helped a PhD student by redesigning an access database setup for recording different types of artefacts. The database consisted of a central table holding artefact ids and some common descriptions, with a series of related tables holding attributes of different types of artefact. What could be recorded was very proscribed and the student was finding that it didn't suit the data and what she wanted to record, and it was information that had been overlooked in the past as the existing database didn't allow for new attributes.
The structure was not normalised, and there were a number of irritating design features (e.g. tables, forms and queries all with exactly the same names), but despite that it worked and is used quite widely by a number of specialists.
I have now resigned the db to one central table holding PK, find Id and common/core attributes, and two related tables, one holding text attributes, and one holding numeric attributes.
Each related table contains attributes from all the different types of artefact with pk, find id, 'attribute type' and 'attribute value', text or numeric. 'Attribute types' are stored in a separate table that combines attribute with artefact type, and is a combo on the recording form. New attributes can be defined in this table for different artefacts, and described as numeric or text.
This design is now up and running and is good for recording. It is compact and elegant. The same form can be used for different artefacts, and new types of attribute can be defined and recorded with no change to db structure.
Where I am struggling is how to get the data out in to a simple spreadsheet so that the data can be summarised. I effectively need to make tables using the "Attribute" descriptor of the two attribute tables (1 text, 1 numeric) as the field name, and the attribute value as value.
Has anyone got any thoughts?
thanks
Matt