473,395 Members | 1,675 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Table design and relationships for a Tiered Commission Database

Hello

I am trying to create a database to calculate commissions on a sale
based on a tiered commission schedule and am having trouble with how
to design the tables and relationships to store the info needed.

Each sale will have 1 or 2 sales reps which are assigned to a tier.
For example:
repA is assigned to Tier 1
repB is assigned to Tier 2
repC is assigned to Tier 3

If repB & repC completes a sale then the following commissions are
paid out
repA receives 4% of sale amount
repB receives 8% of sale amount
repC receives 4% of sale amount

If repA completes a sale then:
repA receives 10% of sale amount

What fields should i include in the table to help determine the
commissions paid out. We may add more Tiers in the future so I would
like to design the structure to be easliy scalable.

Thank you in advance for your time.
Matt
Oct 10 '08 #1
2 5456
On Oct 10, 11:22*am, spima05 <mspilot...@gmail.comwrote:
Hello

I am trying to create a database to calculate commissions on a sale
based on a tiered commission schedule and am having trouble with how
to design the tables and relationships to store the info needed.

Each sale will have 1 or 2 sales reps which are assigned to a tier.
For example:
repA is assigned to Tier 1
repB is assigned to Tier 2
repC is assigned to Tier 3

If repB & repC completes a sale then the following commissions are
paid out
repA receives 4% of sale amount
repB receives 8% of sale amount
repC receives 4% of sale amount

If repA completes a sale then:
repA receives 10% of sale amount

What fields should i include in the table to help determine the
commissions paid out. We may add more Tiers in the future so I would
like to design the structure to be easliy scalable.

Thank you in advance for your time.
Matt
tblRep
repCode
repName

tblOrder
salesOrder
tblOrderRep
salesOrder
repCode
tier
commissionRate

I save the commissionRate in case the business rules change
tomorrow

and then you have a form to calculate the commission, and it applies
the 4, 8, 4, 10% rules
Oct 10 '08 #2
On Oct 10, 6:51*pm, Roger <lesperan...@natpro.comwrote:
On Oct 10, 11:22*am, spima05 <mspilot...@gmail.comwrote:


Hello
I am trying to create a database to calculate commissions on a sale
based on a tiered commission schedule and am having trouble with how
to design the tables and relationships to store the info needed.
Each sale will have 1 or 2 sales reps which are assigned to a tier.
For example:
repA is assigned to Tier 1
repB is assigned to Tier 2
repC is assigned to Tier 3
If repB & repC completes a sale then the following commissions are
paid out
repA receives 4% of sale amount
repB receives 8% of sale amount
repC receives 4% of sale amount
If repA completes a sale then:
repA receives 10% of sale amount
What fields should i include in the table to help determine the
commissions paid out. We may add more Tiers in the future so I would
like to design the structure to be easliy scalable.
Thank you in advance for your time.
Matt

tblRep
* *repCode
* *repName

tblOrder
* *salesOrder

tblOrderRep
* *salesOrder
* *repCode
* *tier
* *commissionRate

* * * I save the commissionRate in case the business rules change
tomorrow

and then you have a form to calculate the commission, and it applies
the 4, 8, 4, 10% rules- Hide quoted text -

- Show quoted text -
Thank you for your response Roger. I am a little confused with the
tblOrderRep, should i include a field for the 2nd rep that might be
part of the sale?

Thank you in advance.

And I would appreciate suggestions from anyone else who may ideas.

Thank you.
Matt
Oct 11 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

36
by: toedipper | last post by:
Hello, I am designing a table of vehicle types, nothing special, just a list of unique vehicle types such as truck, lorry, bike, motor bike, plane, tractor etc etc For the table design I am...
4
by: serge | last post by:
I ran into a table that is used a lot. Well less than 100,000 records. Maybe not a lot of records but i believe this table is used often. The table has 26 fields, 9 indexes but no Primary Key at...
0
by: Karl | last post by:
Perhaps, this may be a silly question, but how do I run a MakeTable query but only copy the records instead of moving them? My main question though: I have a cascading relational database. Think...
33
by: Lee C. | last post by:
I'm finding this to be extremely difficult to set up. I understand that Access won't manage the primary key and the cascade updates for a table. Fine. I tried changing the PK type to number and...
6
by: Kevin Chambers | last post by:
Hi all-- In an attempt to commit an Access MDB to a versioning system (subversion), I'm trying to figure out how to convert a jet table's metadata to text, a la SaveAsText. The end goal is to...
4
by: yanjie.ma | last post by:
Hi, I've got a two part question on table and form design (sorry for the length but it takes a bit to explain). Our sales department uses a look-up table to help the them select the best...
5
by: mark_aok | last post by:
Hi all, I have a situation where I have a split database. At the back end, I need to - create a new table (I will call it newTable) with the exact fields, and relationships as another table...
3
MattFitzgerald
by: MattFitzgerald | last post by:
My Forms & Tables:- Main form is Frm_LE_List (contains Customer Details) Stored in Tbl_LE_List Which contains subform Frm_VOL_References (Contains Orders known as VOL's) Stored in...
12
by: spima05 | last post by:
Hello I am developing a database to calculate commissions on a sale for each rep involved in the same and their uplines. Below is the database structure and the commissions schedule. I am...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.