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, 10: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, 06: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, 10: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!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

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




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