t
so I am working on a database which was set up wrong. currently they have a floating table with zero relationships called diagnosis. they use this table in a query, to get the TEXT of the primary dx and secondary dx in a VIST table.
so there's 3 tables, but really only two being used.
patient
patiendID
visit
visitID (pk)
patientID (fk)
primaryDx (query to below)
secondaryDx (query to below)
diagnosis
dxID (not being used)
description
to correct this should i make a new table like
vistPrimaryDX
vistPrimaryID
visitID
dxID
and
VisitSecondaryDX
VisitSecondaryID
visitID
dxID
or am i going about this all wrong? thanks
so I am working on a database which was set up wrong. currently they have a floating table with zero relationships called diagnosis. they use this table in a query, to get the TEXT of the primary dx and secondary dx in a VIST table.
so there's 3 tables, but really only two being used.
patient
patiendID
visit
visitID (pk)
patientID (fk)
primaryDx (query to below)
secondaryDx (query to below)
diagnosis
dxID (not being used)
description
to correct this should i make a new table like
vistPrimaryDX
vistPrimaryID
visitID
dxID
and
VisitSecondaryDX
VisitSecondaryID
visitID
dxID
or am i going about this all wrong? thanks