Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Best Structure for Billing Database?

$
0
0

Hi everyone. I am working on a Billing section for a customer management program for my dad's shop and wanted to ask how best to handle that. I'm using SQL Server 2000 presently (I can't figure out how to upgrade it).

I already have different places in the database that hold customer information.

So, how should the database be structured in order to hold multiple invoices? I would like each invoice to also be able to hold multiple payments or additional charges.

But my problem is that I really don't know the best way to handle this quickly. I would have to get the customer information from the customer table, then get all of the invoices for that customer that were open and for each of those invoices get all of the additional charges and then payments.

So I wanted to ask how best I should approach this because what I am doing presently is VERY slow.

Thank you for all of your help, I really appreciate the input. I want to do the right thing.


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>