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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 4th, 2006, 05:41 AM
stebut05 stebut05 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 1 stebut05 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 30 sec
Reputation Power: 0
Quite Challenging!!!

Hi people,

Not sure if this should be posted here, but i'll give it a try.

I am looking for some advice regarding the development of a database, as I am no expert, but I’ve been asked to develop one. Hopefully, it will be a bit of challenge for someone out there, it has been for me!!! I have developed it, but would really like some advice, to see if I have developed it correctly, or if it could be improved.

Background
A database is required to record and monitor maintenance on a machine. This machine needs to maintain on a regular basis, and has different types of maintenance checks. A full maintenance (every 500 hrs) and half maintenance (200 hrs), different components get checked on each maintenance check, i.e. check component, grease component, change component etc.

At present this is a paper based system illustrated below.


Index card

Index Card Image



Each maintenance card is recorded on the index card to check that it has been completed and signed off


Work card

Work Card Image

As you can see the card title (clean component) is linked to the index card. I need to record each maintenance card in the database and all the tasks within the card, some of the tasks need to be signed of by maintenance person or engineer and this needs to replicated in the database, so that if any problems occur details of who inspected or maintained the machine can be recalled. This is where i'm having problems. I could just do one database record for each miantenace card, but some of the tasks have sign off boxes and others dont. This is an important apect of this system, so i cant add a sign off box to every task (if not needed). There are also notes and warning that need to be added as well, furthermore, some task can have sub tasks, or even sub-sub tasks. Finally, the new system cards. must have the same layout as the paper based version. This all leads to a headache!!!!!!!!!

My effort

I have tried to tackle this system as follows:

Have an index table that links to a maintenance type table, that then liks to a machine table. Then i have a maintenance description table:

Description_id (PK)
Detail_id (FK)
Page_number
Task_number
Sub_task
Sub_task_two
Maintenacne_description
Description_notes
Description_warning
Inspector_sign_off
Maintenance_sing_off


As you can see, its a mess i think. each task is now a record, but alot of the fields are NULL as not all are filled. ie. as illustrated above some of the tasks dont have notes, warning or sign offs.


I would really appreciate as much help and advice as possible and thanks in advance.


Regards,


Steven

Reply With Quote
  #2  
Old July 18th, 2006, 12:39 AM
pjv101 pjv101 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Mill Park, Australia
Posts: 1 pjv101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 17 sec
Reputation Power: 0
Here's my 2 cents worth:

I'd be more worried about how to generate the reports as understanding the logic in report generation will assist the datafile creation. For example 500 hours from when ( machine up time or 500 hours straight )? If its only machine up time who decides to check the cards and who logs the hours to start with.

Presuming a 500 hour time limit I'd look at

MachineID -> ID, description, history, notes
Date
EventID -> ID, Event type ( ie new, sold, maintained, examA, examB etc )
SignOffID -> ID, PersonCode, Date, SignOffType ( Inspector, Fitter, etc )

A sub task is just a smaller event, so a lube event could be 200 and lube topup could be 210.

I'm looking at a broader aspect of machine maintenance where this program could be used for any machine and events not described can be added as new machinery comes on line

This method runs one record per event. A reporting system then starts at the report date and polls all records backwards to a nominated date/event. The report method with rules would then be looking for maintenance being done, not signed off, not inspected, etc.

Hope this gives you some ideas

pjv

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesDatabase Development > Quite Challenging!!!


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway