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 > online shop

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-11, 23:53
Waseempki Waseempki is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
online shop

I want to develop online computer shop website.in which a number of products(computer,its parts) are available to purchase.but i am confuse to design database and its table.which is the best one strategy?
  1. Store all products in one table
    Store administrator and customer members in one table.
  1. store desktop and laptop computers in one table and mouse,printer etc are stored in another table
    store administrator and customer in different tables

Last edited by Waseempki; 06-09-11 at 23:57.
Reply With Quote
  #2 (permalink)  
Old 06-12-11, 03:04
Backslider Backslider is offline
Banned
 
Join Date: Jun 2011
Posts: 40
If you are confused on how to design your database, then you would do well to use one of the many open source webshops available, or even a paid solution if that takes your fancy.
Reply With Quote
  #3 (permalink)  
Old 06-12-11, 10:40
Waseempki Waseempki is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
Can you give me suggestion?

I want to do myself.I does not use existing one.Can you give me suggestion?
Reply With Quote
  #4 (permalink)  
Old 06-12-11, 11:48
Backslider Backslider is offline
Banned
 
Join Date: Jun 2011
Posts: 40
I would still suggest that you LOOK at a few open source solutions as they will best show you ways to do it.

Product databases can be extremely complex and I have yet to work with an eCommerce solution that uses a single table for products.

Lets say for example you have a graphics card for sale, but that card comes with several memory options. How are you going to handle that? Or you have a mouse, but that comes in several different colors... and so on...

For me, the best way to handle these kind of options is to have sub-products, a solution I created in 2003 and now used by Google, Mozilla and many others.
Reply With Quote
  #5 (permalink)  
Old 06-13-11, 17:42
BarryWilliams BarryWilliams is offline
Registered User
 
Join Date: Apr 2010
Location: London, England
Posts: 24
Hi

I suggest you use an online Database supplier to try to build your own - it will help you clarify your thinking about your design options.

Zoho used to offer something suitable that I think they are now calling Zoho Creator :-
https://www.zoho.com/creator/

If that doesn't work out I have listed a page of other choices on jy Database Answers Web Site :-
Online Databases

I would be interested in knowing how you egt on ;-0)

HTH

Barry Williams
London, England
Reply With Quote
  #6 (permalink)  
Old 06-14-11, 04:37
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Quote:
Originally Posted by Waseempki View Post
I want to do myself.I does not use existing one.
Why?

(this message is too short for some reason)
__________________
Mike
Reply With Quote
  #7 (permalink)  
Old 06-16-11, 09:58
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Quote:
Originally Posted by Waseempki View Post
I want to develop online computer shop website.in which a number of products(computer,its parts) are available to purchase.but i am confuse to design database and its table.which is the best one strategy?
  1. Store all products in one table
    Store administrator and customer members in one table.
  1. store desktop and laptop computers in one table and mouse,printer etc are stored in another table
    store administrator and customer in different tables
Of these two options, the first is much preferable to the second.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #8 (permalink)  
Old 06-16-11, 12:55
Backslider Backslider is offline
Banned
 
Join Date: Jun 2011
Posts: 40
Quote:
Originally Posted by blindman View Post
Of these two options, the first is much preferable to the second.
Oh yes, a single table full of NULLs.

I have yet to see one eCommerce platform where it would be either possible or practical to store all product data in a single table. It just could never work unless possibly you are selling a single product. Certainly not with computers and computer parts.
Reply With Quote
  #9 (permalink)  
Old 06-16-11, 13:09
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Look up "Recursion".
Either an Adjacency model or Celko's Nested Set Model will be robust and efficient.

And by the way Backslider, where are teh codez?
Best way to design a table with start and end data
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #10 (permalink)  
Old 06-16-11, 13:22
Backslider Backslider is offline
Banned
 
Join Date: Jun 2011
Posts: 40
Quote:
Originally Posted by blindman View Post
Look up "Recursion".
Either an Adjacency model or Celko's Nested Set Model will be robust and efficient.
Yes, these are both good techniques for handling product categories, but not product data. Looks like we need more tables.

Quote:
Originally Posted by blindman View Post
And by the way Backslider, where are teh codez?
Best way to design a table with start and end data
I didn't see your currencies table......
Reply With Quote
  #11 (permalink)  
Old 06-16-11, 13:27
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Teh CODEZ, Backslider, teh CODEZ! We needz thm! LOL!
Best way to design a table with start and end data
Plz 2 share ur gr8t solushin w us?
ROFLMAO
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #12 (permalink)  
Old 06-16-11, 14:33
Backslider Backslider is offline
Banned
 
Join Date: Jun 2011
Posts: 40
Quote:
Originally Posted by blindman View Post
Teh CODEZ, Backslider, teh CODEZ! We needz thm! LOL!
Best way to design a table with start and end data
Plz 2 share ur gr8t solushin w us?
ROFLMAO
Well gee, lets stay on topic and perhaps you can show our friend your great single table eCommerce solution?
Reply With Quote
  #13 (permalink)  
Old 06-16-11, 14:50
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
No idea what you are talking about.
Where did I claim to have a great single table eCommerce solution?
Are you resorting to making stuff up now?
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
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