Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7842629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:21:58+00:00 2026-06-02T16:21:58+00:00

The problem is not big but logic comes hard sometime so the same is

  • 0

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:
enter image description here

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:22:00+00:00Added an answer on June 2, 2026 at 4:22 pm

    I think you want to normalise the Installment table to something like

    Table INSTALMENT
        contract_id     -- FK to contract table
        date            -- used to specify month and date
        instalment      -- the instalment amount
        commission      -- the commission amount
        primary key (contract_id, date)
    

    The you can go through your excel sheet and create an entry for each installment (note, this is pseudocode):

    insert into INSTALMENT 
       (contract_id, to_date('01-01-year', 'DD-MM-YYYY'), JanuaryInstalment, JanuaryCommission)
    insert into INSTALMENT 
       (contract_id, to_date('01-02-year', 'DD-MM-YYYY'), FebruaryInstalment, FebruaryCommission)
    insert into INSTALMENT 
       (contract_id, to_date('01-03-year', 'DD-MM-YYYY'), MarchInstalment, MarchCommission)
    

    etc.

    EDIT2: added the pseudo to_date date format to avoid confusion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing not so complicated application but I have a big problem;) In my
I'm using sqlalchemy. The question is simple, but I have a big problem, because
This problem is not readily reproducible in a simple example here but was wondering
I am stuck with a simple problem but not able to figure out the
Not a problem as such but during development I noticed that Chrome doesn't accept
there's this interesting problem i can not solve myself. I will be very glad,
I have a problem with selecting not first selector using attributeContains jQuery('div[id*=abc]:not(:first)').hide();
I've got a problem I'm not sure how best to solve. I have an
I have a very big problem and can't seem to find anybody else on
I'm developing a iPhone application and until now not big problems. But today I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.