| | |
Sales and Purchase DataBase Design
Please support our Database Design advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Your requirement is not clear, you want to sell bedspread to customer ? First try to write down the full story. You will require a table for bed another one for customers possibly.
•
•
Join Date: Jan 2008
Posts: 2
Reputation:
Solved Threads: 0
Thanks For Giving Me Support
I want to know how many tables are required for sales and purchase of bedspread
Just like
Categories
Products
Order
etc
I am not able to stream line these tables
requirment:
This database design is for a WebSite which runs with in the organization which are in different locations. When Some Sales occurs SalesOfficier enter the sales and when some purchasing will be done PurchaseOfficier update the database.
What are the Entities that take part in this sales and purchase.
Kindly Help m
I want to know how many tables are required for sales and purchase of bedspread
Just like
Categories
Products
Order
etc
I am not able to stream line these tables
requirment:
This database design is for a WebSite which runs with in the organization which are in different locations. When Some Sales occurs SalesOfficier enter the sales and when some purchasing will be done PurchaseOfficier update the database.
What are the Entities that take part in this sales and purchase.
Kindly Help m
•
•
Join Date: Jan 2008
Posts: 62
Reputation:
Solved Threads: 6
I am not too clear on what you are asking for, so I shall give you a solution to what i think it is, if i am wrong, post back with further queries.
First of all what tables you need depend entirley on what information your company is interested in retaining. I will assume all and you can delete as nesseccary
First of all there should be a person and a product table:
PERSON (person_ID*, name, start_date, end_date)
PRODUCT (product_ID*, name, description, price, colour, weight, size, stock, start_date, end_date) //add more fields as nesseccary
if you want to keep track of your staff make a staff person table:
STAFF_PERSON (sp_ID*, staff_ID, person_ID, start_date, end_date) //assuming a staff table exists already
Then you are going to want a customer table:
CUSTOMER (customer_ID*, person_ID, name, start_date)
Then tables to connect customer to person and customer to product:
CUSTOMER_PERSON (cp_ID*, customer_ID, person_ID, start_date, end_date) //this is to keep track of your customers names and other details that might be in the person table
PRODUCT_CUSTOMER (pc_ID*, customer_ID, product_ID, staff_ID, start_date, end_date) //this is to keep track of which products have been sold to which customers. (I put the staff_id in this in case you need to know who sold it for commision)
This is only a very simple solution, but I think it will give you the gist of what needs to be done. If you need more help with, or I didnt answer your question then just repost here and i wil get back to you.
First of all what tables you need depend entirley on what information your company is interested in retaining. I will assume all and you can delete as nesseccary
First of all there should be a person and a product table:
PERSON (person_ID*, name, start_date, end_date)
PRODUCT (product_ID*, name, description, price, colour, weight, size, stock, start_date, end_date) //add more fields as nesseccary
if you want to keep track of your staff make a staff person table:
STAFF_PERSON (sp_ID*, staff_ID, person_ID, start_date, end_date) //assuming a staff table exists already
Then you are going to want a customer table:
CUSTOMER (customer_ID*, person_ID, name, start_date)
Then tables to connect customer to person and customer to product:
CUSTOMER_PERSON (cp_ID*, customer_ID, person_ID, start_date, end_date) //this is to keep track of your customers names and other details that might be in the person table
PRODUCT_CUSTOMER (pc_ID*, customer_ID, product_ID, staff_ID, start_date, end_date) //this is to keep track of which products have been sold to which customers. (I put the staff_id in this in case you need to know who sold it for commision)
This is only a very simple solution, but I think it will give you the gist of what needs to be done. If you need more help with, or I didnt answer your question then just repost here and i wil get back to you.
![]() |
Similar Threads
- Income generating perfume retail site with over 3000 brand name perfumes (Websites for Sale)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- Help on General Best Practices for Table/Database Design (Database Design)
- Web Directory - Arcade Games Site With 1800 Games - Funny Pictures Site & Many Others (Websites for Sale)
- Inventory Control Database Design (Costing Methods) (Database Design)
- Multi Location Store Software database design (VB.NET)
Other Threads in the Database Design Forum
- Previous Thread: E-commerce product variations
- Next Thread: Database 101 question
| Thread Tools | Search this Thread |






