S
scs
How would one go about redesigning a backend full of data. I know how the
tables should have been built but I don't know how to go about redesigning
them now that their full of data. For example:
The database has a tblLease table full of data. Most of the fields in this
table should have been put into a separate tblVisit instead. The tblVisit
table has not been created yet. Some of the information needs to remain in
the tblLease. The tblLease has tables related to it, where it is the one
side of a many to one relationship. The tblLease is and the new tblVisit
needs to be on the many side of a one to many relationship with the
tblPerson.
I may even decide to structure it like this tblPerson related to tblVisit
related to tblLease in a one to many relationship.
tblPerson
----------
PersonID
FirstName
tblVisit
----------
VisitID
PersonID
StartDate
EndDate
tblLease
----------
LeaseID
VisitID
StartDate
EndDate
If I could get the PersonID, StartDate, EndDate, and a buch of other data
into a new table called tblVisits I'd be most of the way where I need to be.
I'm sure there are some shortcuts here. I'm not too worried about the
frontend. I can redo it before hand. I just want to get the backend in
better shape. Export tables, copy them, make table queries? What's the
best way?
TIA
tables should have been built but I don't know how to go about redesigning
them now that their full of data. For example:
The database has a tblLease table full of data. Most of the fields in this
table should have been put into a separate tblVisit instead. The tblVisit
table has not been created yet. Some of the information needs to remain in
the tblLease. The tblLease has tables related to it, where it is the one
side of a many to one relationship. The tblLease is and the new tblVisit
needs to be on the many side of a one to many relationship with the
tblPerson.
I may even decide to structure it like this tblPerson related to tblVisit
related to tblLease in a one to many relationship.
tblPerson
----------
PersonID
FirstName
tblVisit
----------
VisitID
PersonID
StartDate
EndDate
tblLease
----------
LeaseID
VisitID
StartDate
EndDate
If I could get the PersonID, StartDate, EndDate, and a buch of other data
into a new table called tblVisits I'd be most of the way where I need to be.
I'm sure there are some shortcuts here. I'm not too worried about the
frontend. I can redo it before hand. I just want to get the backend in
better shape. Export tables, copy them, make table queries? What's the
best way?
TIA