473,513 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple Database Required

I have been asked to build a simple database of customer records. Below
are the fields required.

My problem always seems to be deciding how many tables I will require.
Salutation and Product will require separate tables as I intend them to
be drop-down lists.

What I need to consider is that a customer could have maybe five
different orders.

Do you think the data should all be contained within one table?

Also, what would be best to use as a primary key? Customer or Order
Number? The customer is unlikely to change except maybe their
salutation if they married/remarried. The order number is unique.

The emphasis is on customer records rather than orders.

Order Number
Salutation
First Name
Last Name
Address 1
Address 2
Town
County
Postcode
Telephone
Email Address
Order Date
Order Number
Product
Order Cost
Salesperson
Notes

TIA
Jan 5 '07 #1
3 1340
Saxman wrote:
I have been asked to build a simple database of customer records. Below
are the fields required.

My problem always seems to be deciding how many tables I will require.
You might benefit by studying the database templates at

http://office.microsoft.com/en-us/te...aspx?av=ZAC000

Jan 5 '07 #2
You would definitely want to create separate tables here. 1 for the
customer info, 1 for the order info and even 1 for sales person info.
In the customer and salesperson tables create a unique ID using
autonumber. then link these to the order table with a field for each
in it. This will keep your tables nice and organized and if you have
to change customer or sales person info you will only need to change 1
record. I don't see that it is necessary to create a salutation table
just use a drop box on that field. ie Mr. Miss. Ms. Mrs. Dr. etc.

HTH.
Cyberwolf

Saxman wrote:
I have been asked to build a simple database of customer records. Below
are the fields required.

My problem always seems to be deciding how many tables I will require.
Salutation and Product will require separate tables as I intend them to
be drop-down lists.

What I need to consider is that a customer could have maybe five
different orders.

Do you think the data should all be contained within one table?

Also, what would be best to use as a primary key? Customer or Order
Number? The customer is unlikely to change except maybe their
salutation if they married/remarried. The order number is unique.

The emphasis is on customer records rather than orders.

Order Number
Salutation
First Name
Last Name
Address 1
Address 2
Town
County
Postcode
Telephone
Email Address
Order Date
Order Number
Product
Order Cost
Salesperson
Notes

TIA
Jan 5 '07 #3
Have you looked at the Northwind sample database that ships with MS
Access? Sounds like it would be what you need.

Chris

Saxman wrote:
I have been asked to build a simple database of customer records. Below
are the fields required.

My problem always seems to be deciding how many tables I will require.
Salutation and Product will require separate tables as I intend them to
be drop-down lists.

What I need to consider is that a customer could have maybe five
different orders.

Do you think the data should all be contained within one table?

Also, what would be best to use as a primary key? Customer or Order
Number? The customer is unlikely to change except maybe their
salutation if they married/remarried. The order number is unique.

The emphasis is on customer records rather than orders.

Order Number
Salutation
First Name
Last Name
Address 1
Address 2
Town
County
Postcode
Telephone
Email Address
Order Date
Order Number
Product
Order Cost
Salesperson
Notes

TIA
Jan 5 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
4734
by: Samantha Smit | last post by:
Hi, I am trying to create a simple asp page that has one command button that updates a database. The URL of the page is like this: http://MyServer.com/Update.asp?UserName=Tom My asp code is...
1
3720
by: Cherrish Vaidiyan | last post by:
sir, I have a small error in Listener configuration.I have two system with a database in each. I am using Red Hat 9 and Oracle 9i. so i shall anme the database and system. system 1 - node2 ...
0
1009
by: nospam | last post by:
This has got to be a FAQ some place, but.... Say I've got a table in some database some place, like so: (Actually, it's several tables kind of turned sideways, but for purposes of this question...
1
1838
by: Lloyd Stevens | last post by:
CustomerTable CustomerTarrifTable TarrifTable WarrantTable *CustomerID CustomerID ProductName *WarrantID BoatType *CustomerTarrifID TarrifRate WarrantDate CustomerName ...
4
1163
by: aroth | last post by:
I have a basic form with some dropdownlist controls that I would like to populate with items from a database. I keep getting the error "Cannot implicitly convert type...
2
1891
by: serge calderara | last post by:
Dear all, I have a webform with a calendar control on it. When loaded the calendar is set to the current date. Depending on a criteria from a database field, calendar day cell appears with red...
27
4584
by: one man army | last post by:
Hi All- I am new to PHP. I found FAQTS and the php manual. I am trying this sequence, but getting 'no zip string found:'... PHP Version 4.4.0 $doc = new DomDocument; $res =...
10
4260
by: shsandeep | last post by:
The ETL application loaded around 3000 rows in 14 seconds in a Development database while it took 2 hours to load in a UAT database. UAT db is partitioned. Dev db is not partitioned. the...
0
1798
by: minnie | last post by:
An AJAX Simple Example for PHP Article from http://www.joyistar.com Introduction: AJAX WebShop 3 Beta2 supports PHP programming by integrating PHP5 development environment. Here we will give an...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.