MajP
You've got your good things, and you've got mine.
- Local time
- Today, 09:30
- Joined
- May 21, 2018
- Messages
- 9,499
Using the abbreviation is fine if it follows the rules (unique, never changing, and IMO short and simple)Answer 1 and 2....Each building has a PropertyID number and each building has many graphics. I used the building abbreviation as the PK as none are ever the same and it is easier to use the abbreviation.
I would be clear in the naming convention, because if you have a PK and it is not called ID and another field called ID it will be super confusing. I would use some form of ID in the abbreviation name bldgAbbr_ID, and take ID out of property, PropertyNumber.
I am not sure on this. But I would think if notes are related to bas points and you can only have a single note then the note field should be in the bas point table. A bas point is related to a piece of equipment so I think you should have a fk to an equipmentID in tblbaspoint and remove the noteID from the equipment table. Is there also a software table for software points.Answer 3 and 4....A graphic has many BasPoints which is the label on the graphic (some for equip. and some are just software points). Each BasPoint has only one note which can be for a software point or a piece of equipment.
[qupte]
Answer 5....Yes the BasPoint could be on two or more graphics in the same building. I've just handled this by linking multiple graphics to one record to add or delete note. Then I create a new GraphicID with all the graphics that the record is on (eg. Steam/DHW). I did this so you can see all the graphics it is on with the one record on the form. Probably could of done something better here.
[/quote]
It should be done with a junction table
tblGraphicsBasPoint
---GraphicID_FK
---BasPointID_FK
However, if you have not worked with junction tables building an interface is a little different
example would be
1 A
1 B
1 C
2 B
In this case bas points A,B,C are on Grapic1 and bas Point B is also on graphic 2.
If this is as you describe then I do not see the reason for the asset tag table unless there is a need to make seperate asset tag records. These are properties of a piece of equipment and could be in the equipment table.Answer 6....The equipment could have up to three asset tags one for the equip., starter, air handling unit (some could have none like a software point). Each Asset Tag has separate fields because you want to see them all when you bring up the form with one record.