SunQuest
           Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 18th, 2003, 05:36 AM
justravis justravis is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: San Diego, CA
Posts: 65 justravis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 12 sec
Reputation Power: 2
Send a message via AIM to justravis Send a message via Yahoo to justravis
Commissions Paid & Discounts in Payment DB

I'm creating a financial db that includes the tracking of commissions paid out & discounts given.

Referrals of clients will most likely be clients themselves. That is why the referrals table has 2 fields that are foreign keys from the org table. How would you track commissions paid? Just add a field to transaction table or create a new table?

As far as discounts given, clients are given a percentage that will be discounted until thier total discount is met. Is my implementation adequete?

organization
a) id
b) name
c) web

contact
a) id
b) org_id
c) name
d) phone
e) email
j) username
k) password

service
a) id
b) name

org-serv
a) id
b) org_id
c) serv_id
d) frequency
0 (one-time)
1 (annually)
4 (quarterly)
12 (monthly)
e) pres_cost
f) beg_date
g) end_date (stops billing, but yet records past subscriptions)

Discount
a) Id
b) org_id
c) percent
d) cum_disc
e) tot_disc

transaction
a) id
b) o-s_id
c) date
d) cost
e) discount
f) amt_paid

referral
a) id
b) referrer (org_id)
c) client (org_id)
d) comm_rate

I APPRECIATE ANY ASSISTANCE.

Reply With Quote
  #2  
Old July 18th, 2003, 06:50 AM
jorgen jorgen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hardenberg, Holland<marquee>
Posts: 284 jorgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Commissions Paid & Discounts in Payment DB

I do not understand exactly what the database should store, so I can only
give a shot in the dark.

As long as the database design is normalized up to the 3th normal form, the database design is okay.

http://www.guides.sk/reldb_dsgn/rdbd_l1.htm#start

Reply With Quote
  #3  
Old July 25th, 2003, 12:25 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Commissions Paid & Discounts in Payment DB

Thread resolve by inactivity from original poster.

If you still need help, please change the status back to unresolved.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Commissions Paid & Discounts in Payment DB


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway