Ok, So this may seem silly but I want to make sure I am right.
I have a simple enough database setup:
Table_Customer
ID (PK)
Acc_number
First
Last
etc.
Table_Notes
ID (PK)
Note_Type_FK (links to Table_Note_type)
Note
Account_FK (Links to Table_Customer)
Table_Note_Type
ID (PK)
Note_Type_Name
Note_Type_Desc
Notes
is for all notes relating to that customer and can be for tech support, sales follow up, etc. This table has a FK linked to Note_Type
and a FK back to Acc_number
in Customer
.
My Questions:
- Is This set up correctly?
- Using SQL, when I add/update a customer and select a note type (eg, Tech Support) and type in a note for that customer, is there anything I should be doing / watching out for when I run the insert statement ?
Its a simple question, but I want to make sure I am doing this correctly.