The problem is not big but logic comes hard sometime so the same is there. I have to save the customer data into a sql tables. the customer record looks like this in a excel shet. The contract duration lies 6 month or 12 month. every customer pay in installments after a month. every month have two records installment amount and commision amount. the excel sheet has record data like this
SR,
CustomerID,
Customername,
CompanyName,
relationType,
ContractStartDate,
ContractDuration,
TotalInstallment,
Comission,
paymentMode,
JanuaryInstallment,
JanuaryCommision,
...
DecemberMonthInstallment,
DecemberMonthCommision
for this i have define these tables in sql:

Are these tables are in correct manner? And i’m confused about the month name record do i put it in the installment table with every installment like (firstInstallmentMonth,firstinstallment,firstinstallmentCommision)
I’m confused, guide me seniors?
I think you want to normalise the Installment table to something like
The you can go through your excel sheet and create an entry for each installment (note, this is pseudocode):
etc.
EDIT2: added the pseudo
to_datedate format to avoid confusion.