473,385 Members | 1,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Thoughts and Ideas On a Simple Purchase Database

Stang02GT
1,208 Expert 1GB
Hello,

I would just like to get your thoughts/ideas/suggestions on how I should go about createing a VERY SIMPLE purchasing system. A friend has asked me help him develop a simple purchasing database.

Just off the top of my head this is what i have come up with for the table lay out.

Tables = Bold Text

Customer
Name
Address
Phone Number
E-Mail Address
Credit Card Number

Orders
Order Number
Product Number
Customer Name
Customer Address
Customer Phone
Cumster Credit Card Number

Products
Name
Manufacture
Model Number
Price
Quantity


Is there anything else that i would need. Is there a better way to arrange the tables and feilds within them? I am open to any thoughts/ideas/and suggestions.


thank you in advance
Oct 15 '07 #1
2 1653
Rabbit
12,516 Expert Mod 8TB
Customer
CustomerID; PK
Name
Address
Phone Number
E-Mail Address
Credit Card Number

Orders
Order Number; PK
Product Number; FK
CustomerID; FK
OrderDate
QuantityOrdered
PriceAtPointInTime

Products
Product Number; PK
Name
Manufacturer
Model Number
Price
QuantityInStock
Oct 15 '07 #2
Scott Price
1,384 Expert 1GB
You've done a good job of starting the process :-)

Normally, however, you would include in your Customers table a field with unique id's named something like CustomerID. Then instead of replicating the Customer Name, etc in your Orders table, you would simply include this CustomerID field. This is called a Primary Key/Foreign Key (Primary Key is in the main table, Foreign Key refers to another table's Primary Key that is used in a second table to reference the data between the tables).

Have a look through this: Database Normalisation and Table Structures as well.

Good luck, and ask whatever questions you need!

Regards,
Scott
Oct 15 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Wade Eyre | last post by:
Folks, I have a quick question that I would very much appreciate some feedback on. We are a not for profit charity organization that has decided to develop a software in-house to manage our...
6
by: freakyfreak | last post by:
Does anyone have any basic, simple scripts of sp's that I can give my computer operators to use to monitor for serious conditions on our sql servers? We are new in the ms-sql arena, a small shop...
4
by: Varun | last post by:
Hi I am interested in purchasing visual studio.Net for my company. i just have a few questions that i hope anyone could help me on I will mainly be using it to develop web applications. What i...
13
by: LRW | last post by:
Having a problem getting a onSubmit function to work, to where it popsup a confirmation depending on which radiobutton is selected. Here's what I have: function checkdel() { if...
1
by: Lloyd Stevens | last post by:
CustomerTable CustomerTarrifTable TarrifTable WarrantTable *CustomerID CustomerID ProductName *WarrantID BoatType *CustomerTarrifID TarrifRate WarrantDate CustomerName ...
5
by: Rob Somers | last post by:
Hey all I am writing a program to keep track of expenses and so on - it is not a school project, I am learning C as a hobby - At any rate, I am new to structs and reading and writing to files,...
5
by: Jay King | last post by:
I have a program that needs to keep records in a table format somewhat like the one below # date message server author 1 06032004 AbCDEFABAC irc.winbeta.org matt So lets pretend I...
6
by: Jim M | last post by:
I've been distributing a fairly mature, very specific MS Access application to end users in small offices of colleges for several years now. This is a part-time venture and low volume operation-...
1
Stang02GT
by: Stang02GT | last post by:
Hello, I'm looking for your thoughts, ideas, and suggestions on this situation. I have recently been given the task to "fix" a menu within the companies intranet site. The current menu...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.