Hi guys, i needed to create a bd to keep track of contracts.
So i have
For Contracts : ContractID, ResponsableP, Client
For Addendums to the Contreacts : AddendumID, Faze_Number
Fields that both Contracts and Addendums have in common : Value, Star_Date, End_Date, Invode_Number, Invoice_Date, Invoice_Value, Balance
The approach I took was to make 2 tables :
Contracts
ContractID (Primary key)
ResponsableP
Client
Value,
Star_Date
End_Date
Invode_Number
Invoice_Date
Invoice_Value
Balance
Addendums
AddendumID (Primary key)
ContractID (Foreign Key)
Faze_Number
Value,
Star_Date
End_Date
Invode_Number
Invoice_Date
Invoice_Value
Balance
After some testing, I don't think this was the best way to go. I'm thinking a 3'rd table with the common fields to link those 2, but I'm not really sure how to do that correctly.
Thanks for the advice
So i have
For Contracts : ContractID, ResponsableP, Client
For Addendums to the Contreacts : AddendumID, Faze_Number
Fields that both Contracts and Addendums have in common : Value, Star_Date, End_Date, Invode_Number, Invoice_Date, Invoice_Value, Balance
The approach I took was to make 2 tables :
Contracts
ContractID (Primary key)
ResponsableP
Client
Value,
Star_Date
End_Date
Invode_Number
Invoice_Date
Invoice_Value
Balance
Addendums
AddendumID (Primary key)
ContractID (Foreign Key)
Faze_Number
Value,
Star_Date
End_Date
Invode_Number
Invoice_Date
Invoice_Value
Balance
After some testing, I don't think this was the best way to go. I'm thinking a 3'rd table with the common fields to link those 2, but I'm not really sure how to do that correctly.
Thanks for the advice