•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 403,516 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,867 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 364 | Replies: 2
![]() |
•
•
Join Date: Jul 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hi ,
I have designed a database that is to create a application simlar to microsoft money
The database erd is aattched with this post. The database has following table
Invoice
Amount
Account
Profit_center
Customer
A invoice can sometimes split in to 3 parts
therefore i have create table invoice
with following column
Invoice_id (PK)
Customer_ID(FK)
Date
I have created a Amount table
with
Invoice_id
Profit_center_ID
ACCOUNT_ID
Amount
I have created amount table as the amount of the invoice is dependent on Profit_center and Account.
From the application i will first update the amount table and then the invoice table.
I wanted to cross check if this is correct.
I have designed a database that is to create a application simlar to microsoft money
The database erd is aattched with this post. The database has following table
Invoice
Amount
Account
Profit_center
Customer
A invoice can sometimes split in to 3 parts
therefore i have create table invoice
with following column
Invoice_id (PK)
Customer_ID(FK)
Date
I have created a Amount table
with
Invoice_id
Profit_center_ID
ACCOUNT_ID
Amount
I have created amount table as the amount of the invoice is dependent on Profit_center and Account.
From the application i will first update the amount table and then the invoice table.
I wanted to cross check if this is correct.
•
•
Join Date: Aug 2007
Location: Adelaide, South Australia
Posts: 365
Reputation:
Rep Power: 3
Solved Threads: 42
The only thing I would say is that since you have a Foreign Key in Amount called Invoice_id, you will need to update the Invoice table before the Amount table. If you try to insert into Amount table for an invoice that you haven't entered into the Invoice table, you will run into problems.
The answer is 42.
![]() |
•
•
•
•
•
•
•
•
DaniWeb MS SQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
amd avatar backup blue gene breach chips creative daniweb data protection database design development dos energy enterprise europe government hacker hardware ibm ibm. news illustrator it linux medicine memory microsoft navigation news open source openoffice pc photoshop print ps3 recession red hat research security server sql sun supercomputer supercomputing survey tutorials ubuntu web working x86
- your ideas on database design??? (Database Design)
- Database design regarding two 'linking' tables (Database Design)
- Database Design for storing versions (Database Design)
- Database Design feedback (absolute beginner here :) (Database Design)
- Help with contact/mailing list database design... (Database Design)
- Database design - subtypes and instances of an entity (Database Design)
- Database Design - Supertypes and Subtypes (Database Design)
- Database Design Advice (MySQL)
Other Threads in the MS SQL Forum
- Previous Thread: MSSQL 2005 Express Restore Backup Issue
- Next Thread: Decimal VS money


Linear Mode