Solved

Most efficient way to store this example data in sql server or some other object

Posted on 2012-03-30
3
298 Views
Last Modified: 2012-03-31
I have Earnings_Code that is dependent on the Employment_Type, and Job_Code.

The earnings code are not all treated the same.  There is a group of codes, that have will are determined on weekly hours and number of weeks.  There is a group of code that are determined on different criteria.  I have attached a file of what one record for a person might look like.

In our office we discussed how we might represent this data so that it would be easy to modify ie not tons of conditional if statements.

There were two model:  represent the data as an object with properties of the different scenario or use a set up table and provide a function to grab the data.

Any input would be greatly appreciated.

Nigluc
0
Comment
Question by:Lucia
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
OCDan earned 500 total points
ID: 37789386
No file attached mate?

How many rules are there for how earning codes are treated?
Is there some logic to the earning codes that mean by looking at the code you can work out (without just remembering) how it should be treated.
0
 

Author Comment

by:Lucia
ID: 37789995
PossibleRecordRepresentation.xlsxHi,

sorry end of day and I thought I attached it .

---Yes there is logic to the codes .  I have an example attached. The logic is different depending for the different earning codes.  

Thank you,
Nigluc
0
 

Author Closing Comment

by:Lucia
ID: 37790782
Thanks for answering.  We are writing a custom bolton to an application.  I looked at the existing earnings code table and the earnings code are determined based on payment type.
So I will save the data in a similar manner.

Nigluc
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What is the proper way to use for criteria in left join? 7 28
SQL view 2 27
MSSQL Import .SQL files - Increase Import Speed 9 42
Sql Query 6 67
This is about my first experience with programming Arduino.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question