I might have got the whole concept wrong but I hold the primary key as very sacrosanct as it prevents you from creating duplicate records and also ensures data integrity. But lately I have been facing difficulty in meeting user requirements which dictate that I need to have two or more instances of record appear within the database. I mightl illustrate it with example.
We have a national chain of supermarket, each denoted by a Location number. I have created a database to maintain refurbishment plan as to when a store gets refurbished. Treating LocNo as the PK has helped me avoid accidental creation of new stores. This arrangement has worked fine. However, lately I have been asked to provide an additional refurb plan for the same store which not only receives a regular refurb but also gets extension for a Liquor department. So effectively, there are twi projects running concurrently. They need to track progress on these two seperate projects at the same time using the database I havecreated.
I am finding it difficult to maintain two sets of info for the same store. Is there any alternative way to have one store appear twice? I have tried going on the path of creating a separate table with one to one relationship which was the subject of considerable discussion in this forum but I did not quite get any outcome of that. I will really welcome some insights.
Cheers
We have a national chain of supermarket, each denoted by a Location number. I have created a database to maintain refurbishment plan as to when a store gets refurbished. Treating LocNo as the PK has helped me avoid accidental creation of new stores. This arrangement has worked fine. However, lately I have been asked to provide an additional refurb plan for the same store which not only receives a regular refurb but also gets extension for a Liquor department. So effectively, there are twi projects running concurrently. They need to track progress on these two seperate projects at the same time using the database I havecreated.
I am finding it difficult to maintain two sets of info for the same store. Is there any alternative way to have one store appear twice? I have tried going on the path of creating a separate table with one to one relationship which was the subject of considerable discussion in this forum but I did not quite get any outcome of that. I will really welcome some insights.
Cheers