User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 401,622 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,769 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 1062 | Replies: 3
Reply
Join Date: Jan 2008
Posts: 2
Reputation: dbdesigner is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dbdesigner dbdesigner is offline Offline
Newbie Poster

Sales and Purchase DataBase Design

  #1  
Jan 2nd, 2008
I am going to work on the sales and purchase module of an ERP.I am facing problem while designing the database.I want to do sales and purchase with respect to bedspread.

Kindly give me a general design with respect to tables and their attributes
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Location: ★ ijug.net ★
Posts: 866
Reputation: ithelp is on a distinguished road 
Rep Power: 4
Solved Threads: 61
ithelp ithelp is offline Offline
Practically a Posting Shark

Re: Sales and Purchase DataBase Design

  #2  
Jan 2nd, 2008
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.
Reply With Quote  
Join Date: Jan 2008
Posts: 2
Reputation: dbdesigner is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dbdesigner dbdesigner is offline Offline
Newbie Poster

Re: Sales and Purchase DataBase Design

  #3  
Jan 3rd, 2008
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
Reply With Quote  
Join Date: Jan 2008
Location: London, England
Posts: 57
Reputation: hooray is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
hooray hooray is offline Offline
Junior Poster in Training

Solution Re: Sales and Purchase DataBase Design

  #4  
Jan 17th, 2008
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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Database Design Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Database Design Forum

All times are GMT -4. The time now is 5:41 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC