I have two tables in my database and they are set up as a one to many relationship. The parent is a machine table which stores basic information about the companies machine's. The child is a service job table which has a list of jobs that have been carried out on that machine. The machines keys are Customer number, Site of Customer and Machine ID. The Service job is all of the above plus a job Id. Referential integrity is set up as well.
My problem is when a machine changes site and it's site number needs changing. Because ref. integrity is set up, it does not allow me to change the number because records exist on the service job table that are related to it and vice versa. Is there any other way of altering these numbers appart from taking ref. integrity off (not an option on a live database), deleting the service job records. (again it's messy when recreating them from a holding place or creating dummy machine and service job records as holding places.
Any help would be greatly appreciated as this is something that will occur on this database quite often.
Thank you
My problem is when a machine changes site and it's site number needs changing. Because ref. integrity is set up, it does not allow me to change the number because records exist on the service job table that are related to it and vice versa. Is there any other way of altering these numbers appart from taking ref. integrity off (not an option on a live database), deleting the service job records. (again it's messy when recreating them from a holding place or creating dummy machine and service job records as holding places.
Any help would be greatly appreciated as this is something that will occur on this database quite often.
Thank you