Hi everyone...
Currently I have a database to track items and locations. The basic way this is done is to have a location table and a locationID FKey in other tables.
however locations can either be other items or other locations which lives in different tables/queries. This means I can't put referential integrity on the joins to the locations table.
to complicate things further, there are different levels of items, and only certain levels of items can be locations, and the different levels have different tables. This means certain items can only be fitted to certain other items. However it would be better to have a more dynamic structure, i.e. any item could be fitted to any other item or location.
I was wondering if there was another neater way to implement something like this?
Thanks
--------------------
Procrastinate Now!
Currently I have a database to track items and locations. The basic way this is done is to have a location table and a locationID FKey in other tables.
however locations can either be other items or other locations which lives in different tables/queries. This means I can't put referential integrity on the joins to the locations table.
to complicate things further, there are different levels of items, and only certain levels of items can be locations, and the different levels have different tables. This means certain items can only be fitted to certain other items. However it would be better to have a more dynamic structure, i.e. any item could be fitted to any other item or location.
I was wondering if there was another neater way to implement something like this?
Thanks
--------------------
Procrastinate Now!