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 8018229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:05:07+00:00 2026-06-04T21:05:07+00:00

Lets say a student enrolled in a particular course. His total fee is $25000

  • 0

Lets say a student enrolled in a particular course. His total fee is $25000 (base on other computations such as tuition fee, miscellaneous fees, etc.).

Now, this is what confuses me.
How can I get AND compute the total remaining balance of the student. Should I:

  1. Subtract the amount he paid from his total balance(a column in my table) every time he pays.

  2. Do not ever modify any column, but use another attribute called total_fee column. Just get the total amount he paid from every transactions that can be found in my tution_payment table, and then subtract the result from the total_fee(this can be done through my query). Also please be noted that I didnt use total_balance here.

I remember someone told me that

Financial transactions are generally only inserted

Does this mean that my former solution is right? Currently, I use the latter, but feels that it is an inaccurate solution.

I am not familiar with how databases represent accounting transactions, so any help will be much appreciated.

  • 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-04T21:05:09+00:00Added an answer on June 4, 2026 at 9:05 pm

    Normally, there would be a table with transactions. The student fee would be booked as credit to the university and debit to the student. A repayment would be booked as credit to the student. An interest fee would be credit to the university.

    That way, there is no need to store a balance. You calculate the balance based on the transaction history. The biggest advantage is that you can explain the balance; it’s not just a number stored in a database, but it has a full history of how it came to be.

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

Sidebar

Related Questions

Lets say I have a controller which provides search functions for a student: public
Lets say I have a student table and I want to display the student
Lets say we have the table SP(sid, pid) which shows student sid is involved
Hi I have a domain object lets say Student and its Roll no as
Lets say, that problems are fairly simple - something, that pre-degree theoretical physics student
Lets say I have a student table and there are 1000 records in it.
Lets say I have a Student class as below: class Student { NSNumber *id;
Lets say i have this member: @property (retain, nonatomic) Student *student; @synthesize student; Now
for clarity lets say we have students and classes, its a many to many
Lets say we have a table here, populated with the following data: acc_id1 acc_id2

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.