473,569 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5482
On Oct 10, 11:22*am, spima05 <mspilot...@gma il.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...@na tpro.comwrote:
On Oct 10, 11:22*am, spima05 <mspilot...@gma il.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
4623
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 proposing a single column table with a field name called vehicle_type and this will contain the vehicle type. Sot it will be
4
10549
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 all! There are no table relationships defined in this database, no Natural keys, only Surrogate keys in the database. 1- Maybe an odd question...
0
1276
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 of a company structure- First the boss, then below him department heads, then below them managers, etc etc. Like a branching diagram. Now I want...
33
4254
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 setting default value to a UDF that manages the auto-numbering. Access won't take a UDF as a default value. Okay, I'll use SQL WITHOUT any...
6
3678
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 be able to build an MDB completely from the svn repository text files. Has anybody dealt with this? Thanks in advance,
4
1955
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 equipment to use for a customer's needs. It basically consists of a table with the following setup: Equipment: Option1: Option2: Option3: ...
5
1886
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 (let's call it oldTable, and I need to copy everything EXCEPT the data). - Then I need to delete oldTable, and rename newTable 'oldTable'
3
2724
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 Tbl_VOL_References This subform has subform Frm_Order_Lines (Contains line items for orders) Stored in Tbl_Order_Lines I also have a table Tbl_Rate_Card_Lookup...
12
4915
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 having trouble designing a way to store the commission rates and calculate the commission amounts. Below is a list of the business rules for...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8132
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7678
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6286
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5222
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3656
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.