If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Data recording keeping for different sale method

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-11, 22:59
crimetime3150 crimetime3150 is offline
Registered User
 
Join Date: Dec 2011
Posts: 1
Data recording keeping for different sale method

Hi.

I'm working on a project where a company has two forms of sales- direct sales to retailers and customers through website. The company doesn't record similar data for the two forms of sales. My question is: Do I have to create two separate tables for the two different methods of sales? Also, for the ERD, is this structure a correct way to design the process?

Sales Order ----> Direct sales (one table), Sales to customers (separate table) ----> Cash Receipt

Thanks for you help!
Reply With Quote
  #2 (permalink)  
Old 12-12-11, 03:02
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
a sale is a sale,whether its over the counter or on a website.
you don't need two separate entities, however if there are significant diffenrecs you may need three tables usign the sub/supertype approach. that you be one table for the common items, and two sub / child tables for whats different between the two. ferinstance taht could be things like delivery address, invoice address, email for the web sale.

plenty would argue that unless you have some significant diferences a single table woudl suffice.

its a quite a common approach and its mirrored by the real world. OK its not the same but
many shops only sell on account administratively so any sales over the counter are assigned to an account. if the customer doesn't have an account then the organisation registers those sales to a generic account called cash account or counter sales / whatever. in principle your requirement is similar
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On