Software Design
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreSoftware Design

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 12th, 2008, 01:37 AM
kishore2k7 kishore2k7 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 1 kishore2k7 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 18 sec
Reputation Power: 0
How many database tables have to be created for this java application

hi ,
can any body help me regading this task.
in my project i have to develop a web application in which it has to be. like.. is related to product related consumer action. where it has to show first the home category homepage of the product,subcaterories of the products,model of the prodcuct . example like if

the home category is ---> electronic applications
the subcategiry of the homecaterogy is -->tv,washing machine,radio,grinders
and inside subcategory i.e when user clicks on the subcategory of the tv then the all tv model company names as to be shown like lg,sony,samsung, & when when user clicks on lg then my requiremnt is to show lg brand all models & when user select on praticular model then for that partcuilar mode li have to show the speciaction of the partcicular model & when user can compare the prodcuts all by selecting 2 or 3 models then i have to show the comparsion of the products i.e specifation of the model & product price like that

for this project can any one sugest that how many tables i have to be created in backend database to work the application as of my requirement



categ subacategory1 subcategory2 brands
ex2: Home > Household Appliances > Washers & Dryers > Washing Machines > LG Electronics Washing
models
Machines > LG Electronics WM 1437 WFD
LG Electronics WM 1438 WF



thanks ,
kumar

Reply With Quote
  #2  
Old June 20th, 2008, 04:48 PM
scoper's Avatar
scoper scoper is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: Surrey, UK
Posts: 853 scoper User rank is First Lieutenant (10000 - 20000 Reputation Level)scoper User rank is First Lieutenant (10000 - 20000 Reputation Level)scoper User rank is First Lieutenant (10000 - 20000 Reputation Level)scoper User rank is First Lieutenant (10000 - 20000 Reputation Level)scoper User rank is First Lieutenant (10000 - 20000 Reputation Level)scoper User rank is First Lieutenant (10000 - 20000 Reputation Level)scoper User rank is First Lieutenant (10000 - 20000 Reputation Level)scoper User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 21 h 31 m 52 sec
Reputation Power: 170
Send a message via MSN to scoper Send a message via Google Talk to scoper Send a message via Skype to scoper
It would probably be easiest to have two tables...

the first would be categories:

categoryId (PK)
parentCategory (FK) -- nullable
categoryName

the second would be brands:

brandId (PK)
caegoryId (FK)
brandName

Using this schema you can navigate categories using recursion. (If a parentCategoryId is null then it is a root category)

Hope it helps
__________________
Scott Perham - MCPD
Ekina.net - Application Design

That URL too long? Why not URL IT!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > How many database tables have to be created for this java application


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT