Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 6th, 2004, 05:47 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default help in designing a database

Hi all,


This is my first project. I hve chosen 'car rental ageny' as my project.
I hve decided to hve the following tables in my project.

Customer Table(This table holds all the customer details)
 cuid
culname
cufname
cuhphone
cuwphone
cucphone
cuadd1
cuadd2
cucity
custate
cuzip
no-of-times-rented
cutype
culic
cussn

Vehicle Table (This table holds the all the details abt the vehicle at car rental agency)
vehplate
vehmake
vehmodel
vehmacyear
vehgps
vehsize

Company Master Table (This table has all the information abt its branches)
comloccode
comadd1
comadd2
comcity
comstate
comzip
comphone
comfax

Rate Plan Table (This table has info about the rate. if it is a minivan and its a weekend , then the rate is so and so like .)
ratecode
rate
vehsize

Transaction Table (This table holds the transaction for each rental going to take place)
tranid
vehid
cusid
rate
pickupdate
dropoffdate


Now i need the suggestion ..am i right in all these or do i hve to add something here. pls help me..

thx in advance..
sangsram
 
Old December 7th, 2004, 01:06 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Where does the Company Master table find its place in your database. I cannot find any relation with any of the other tables.

Regards
Ganesh
 
Old December 7th, 2004, 01:29 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Anantsharma Send a message via Yahoo to Anantsharma
Default

HI,

Sounds good. I am not if its a Produstion project or an Acdemic. Lot of other things depends. Anyways here are the points :-

1) In Vehicle Master there should be a VehicleID (May be PK).
2) Vehicle Size master is also required.
3) In Transaction table there should be RateCode instead of Rate.
4) You need a Vihice Modal and Vehicle make Master also.

Rest I suggest to get started with this model. Always keep reports reports reports in mind and you will get some more tables comming in picture.

Gud luck

B. Anant
 
Old December 7th, 2004, 12:38 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thx guys. i hve a vehid too. i think that was a typo error.
The company master table gives details about other branches. suppose a customer asks wheater there is a branch in a particular location then the employee may use this table to look up..am right or not?

 other changes i will do. while talking abt the reports how it shld be ? ..like

reports for a particular date
reports for a particular customer

thx
sangsram






Similar Threads
Thread Thread Starter Forum Replies Last Post
some help designing my database lord_midnight BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 0 November 8th, 2008 11:39 AM
web designing werstyle teen HTML Code Clinic 0 November 22nd, 2006 05:33 AM
database designing mukund SQL Server 2000 1 December 23rd, 2004 12:14 AM
Database Designing Time Estimation mpradeep SQL Server 2000 3 February 26th, 2004 11:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.