473,385 Members | 1,693 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,385 software developers and data experts.

advice on table structure

I am working on a database that will be used for tracking employee
activity based on projects and weeks consumed. So I need a table for
the EMPLOYEES (Name, ID, Role, etc.) and one for PROJECTS (ProjectID,
Name, etc.). Basically I need to emulate an Excel spreadsheet already
in existence which lists something like the below:

Employee: Jane Livensen April 2-8 April
9-15 April 16-22
Project: Area 19 Receivables 80%
65% 50%
Project: Area 22 Benefits 20%
35% 50%

Thus I may be looking at a third table for WEEKS (?)
One hurdle is that I want to display each employee within a subform
like the strcture above, but if I avoid the idea of a table just for
WEEKS then my only thought is to have all 52 weeks as 52 different
fields within the EMPLOYEE or PROJECTS tables.

Ideally the end result needs to have a continuous-form style main form
scrolling vertically through all the employees and within each
employee a subform (also on continuous-form style to allow editing and
conditional formatting) to display the weeks - but these need to
scroll HORIZONTALLY by week. This tool will also serve for forecasting
staffing needs with hypotheticals like if during a particular week an
employee is 80% on one project, only 20% is left for other work.

Any ideas?
Thanks!!!!

Jun 27 '07 #1
1 1276

ok, first get the data structure right and then worry about the
interface.

as far as i understand your data, I'm seeing 4 normalised tables: (PK
= primary key, CK = composit key)

tblPersonnel: EmployeeID (PK); Name
tblAreas: AreaNo (PK); AreaDescripition
tblWeeks: WeekNo (PK); DateFrom; DateTo
tblPercentages: EmployeeID (CK); AreaNo (CK); WeekNo (CK); Percentage

....and if employees have a restricted set of areas in which they
operate, you'll need a fifth:
tblPersonnelAreas: EmployeeID (CK); AreaNo (CK)

As for interface - it's often a big mistake to design an interface
using a spreadsheet as inspiration. I think it would be a mistake
here. What you are describing is probably more a more useful layout
for a report then a data interface. As a data input / update mechanism
what you've described would be at best confusing.

Personally, I would have a single form for Personnel with a list box
listing the employee's areas of responsability. Another list box would
hold the weeks worked, which would drill down to the percentage
breakdown of time per area in that week on a seperate modal form.

- Based on your question, the above interface set-up may be a bit
advanced for you - you may wish to just use sub-forms instead. But
which ever way you go:
1. stay away from nested sub-forms. just... no!
2. use sanity checking mechanisms to ensure percentages add up to 100%
for each employee-week. you'll be glad you did!

good luck
Jun 27 '07 #2

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

Similar topics

75
by: Howard Nease | last post by:
Hello, everyone. I would appreciate any advice that someone could give me on my future career path. Here is my situation: I am a bright Junior in a very well-respected private high school, taking...
0
by: rwwff | last post by:
I'm wanting to convert/import an ancient, custom coded (in c) language database into mysql. I understand the mechanics of the process on both sides, but I need advice on the performance...
2
by: Tim Mackey | last post by:
hi folks, i'm puzzled over this one, anyone with some solid db experience might be able to enlighten me here. i'm modelling a file system in a database as follows, and i can't figure out to...
1
by: meganrobertson22 | last post by:
Hi Everybody- I am trying to create a Table structure to represent the relationship between Agencies and their Sub-Agencies. There are Agencies and Sub-Agencies. Some Agencies have...
3
by: ChadDiesel | last post by:
Hello everyone. I need some advice on table structure for a new project I've been given. One of our customers sends us an Excel spreadsheet each week containing their order. Currently, someone...
3
by: CAD Fiend | last post by:
Hello, I have a land development project that has a many-to-many relationship. I have ONE question regarding table structures, and ONE question on how to make a Form with two Subforms, below. ...
6
by: frizzle | last post by:
Hi there, I'm going to build a simple forum in mySQL. I've thought about it for a while now, but still can't figure it out completely: If i have say 5 main categories, One has 5...
0
by: Miguel Dias Moura | last post by:
Hello, I am working on an Asp.Net 2.0 / SQL 2005 web site. I am using profile to save the users info on the database. For example, I have the following structure: Public Structure Name...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
23
by: JohnH | last post by:
I'm just recently come to work for an auto brokerage firm. My position involves performing mysterious rites, rituals and magick in order to get information out of their access database. This is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.