SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 17th, 2004, 02:07 PM
evilz35 evilz35 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 evilz35 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
normalisation problem

hi guys

i really need you tech boffins help for normalising some tables for my a database for my taxi company that i have brought. i'm quite a technical inthusiast and hope to be able to create a oracle dataase in oracle .i have read on many websites that when designing a database it is important to have normalised tables. so can any one help me normalise my fields i have it in unormalised form. (below). i have looked at tutorials on websites and they don't seem relevant to my database and i would like to learn how to do this for my database. so could some one show me how to do first normal form and then second normal form and then third normal for please.i have already done UNF and i think i have done 1NF below. is this right so far

here is unnormalised form.


we have a number of offices located in the main cities of Scotland

office number
address
street city
postcode
phoneno.

Each office has four kinds of staff: a Manager, several taxi owners, administrators and a number of drivers. Staff can be located at more than one office


manager
first name
last name
address
salary
d.o.b


An owner provides one or more taxis

taxi owner
first name
last name
address
salary
d.o.b

administrator
first name
last name
address
salary
d.o.b

driver
first name
last name
address
salary
d.o.b

taxi
registration no.
model
make
colour
milage
M.O.T due date
capacity


taxis are not available for hire by the public hailing a taxi in the street but must be requested by first phoning the us to attend a given address. There are two kinds of clients-private and business


The business provided by private clients is on an ad hoc basis. The details of private clients are collected on the first booking of a taxi

Private customer
First name
last name
telephone no.
client no.


business provided by business clients is more formal and involves agreeing a contract of work with the business.A contract stipulates the maximum number of jobs that Critter-Cabs will undertake for a fixed fee


business customer
max jobs
fixed fee
start date
end date
Description //whether it is a night job or a day job
name
address
telephone no.
fax
contract no.

When a job comes in the appropriate details are recorded for either a private client or a business client.

If the job is requested by a business client then the contract number is also recorded

jobs
contract no.
pickup date
pick up time
pick up address
drop off address
milage used
charge made
job completed / yes or no



1NF
* = primary key ** = foriegn key// i was'nt sure what to put down for foriegn keys ,so i don't think they are all there
-----------------
*office id
street
city
postcode
phoneno

----------------

*Staff_id
Staff Type
first name
last name
street
city
postcode
salary
d.o.b
------------------

*taxi_id
registration no.
model
make
colour
milage
M.O.T due date
capacity

--------------------
//private clients

*client no.
First name
last name
telephone no.

-------------------
//business clients

*contract no.
max jobs
fixed fee
start date
end date
Description //whether it is a night job or a day job
name
street
city
postcode
telephone
fax
------------------------------

*job_id
**contract no.
pickup date
pick up time
pick up address
drop off address
milage used
charge made
job completed / yes or no

Reply With Quote
  #2  
Old February 23rd, 2004, 02:29 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
Two things,

Who owns the taxi's being used? You didn't make any reference for that.


Second, better re-think you desire to use an Oracle DB. By the looks of you data, that is overkill for your needs (to expensive)

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > normalisation problem


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
Stay green...Green IT