Database Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesDatabase Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 4th, 2009, 11:28 AM
macinslaw01 macinslaw01 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 2 macinslaw01 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 10 sec
Reputation Power: 0
Need advice designing database

We have a program at work called Kaizen. Any ideas the employees come up with the help the company save money, improve quality or improve safety and productivity, we get assigned points that we can convert into cash.

We would like to track these things. Here is the information we would like to capture:
Name,
department,
kaizen type,
kaizen name,
savings (if any),
kaizen summary,
start date,
graded date,
notes (kaizen),
whether there was an incentive (bonus points),
points earned to date,
points cashed in

Also certain types have certain point value:
log - 3pts,
best theme (semi annual contest) - 20 points.,
etc.

I had decided on the following tables:

Employees - empid, fname, lname
dept - empid, did, dept
team - empid, teamid, team
incentive - iid, name, summary
points earned - pointseid, empid, kaizenid, points
points cashed - empid, date, pts
kaizen - kaizenid, empid, teamid, pointseid, incentiveid, kaizen type, kaizen name, savings, summary, start date, graded date, notes

So far, I am using mysql 5, and am having trouble. I'm not sure where the trouble is, but I suspect that my database design is really flawed. Can someone assist me in organizing project?

Thanks in advance.

-Mac

Reply With Quote
  #2  
Old May 18th, 2009, 07:47 AM
saliq saliq is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 2 saliq User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 25 m 36 sec
Reputation Power: 0
not so sure , but by looking the table structures, its seems bit odd to me, i guess u need to define proper relationship b/w each tables, here i m clearly seeing redundant relations(may b its ur requirement)
for e.g
kaizen - kaizenid, empid, teamid, pointseid, incentiveid...
empID and TeamID also are linked in Team Table

i only recommend to define cardinality(relationship) b/w each tables and normalize them accordingly...

Reply With Quote
  #3  
Old May 18th, 2009, 11:29 AM
macinslaw01 macinslaw01 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 2 macinslaw01 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 10 sec
Reputation Power: 0
Gadzooks! You are correct, I did not catch that, doh!

Basically, I was giving the information to capture and wanting to know how someone else would approach the table design.

I trimmed this down quite a bit. I merged the emp, dept and team tables together. I removed the points earned and incentive tables.

Redesigned the kaizen table to reflect those changes. The issue is that I need to make sure that I'm not going to end up getting painted into a data corner. I was always instructed to place like things together, which I believe I have done in this example, but I really was looking for a second opinion and any suggestions to help me from making a mistake.

Thanks very much for your response.

-Mac

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesDatabase Development > Need advice designing database


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek