Click here to Skip to main content
15,884,794 members
Home / Discussions / Database
   

Database

 
GeneralRe: how to update table after query Pin
nibabug16-Oct-07 16:11
nibabug16-Oct-07 16:11 
QuestionHow to Convert a project from sql 2000 to 2005 in asp.net Pin
scicorp15-Oct-07 23:49
scicorp15-Oct-07 23:49 
AnswerRe: How to Convert a project from sql 2000 to 2005 in asp.net Pin
Christian Graus16-Oct-07 1:10
protectorChristian Graus16-Oct-07 1:10 
Questionwhile loop in stored procedure Pin
Sonia Gupta15-Oct-07 22:19
Sonia Gupta15-Oct-07 22:19 
AnswerRe: while loop in stored procedure Pin
Giorgi Dalakishvili15-Oct-07 22:41
mentorGiorgi Dalakishvili15-Oct-07 22:41 
AnswerRe: while loop in stored procedure Pin
Hesham Amin16-Oct-07 3:42
Hesham Amin16-Oct-07 3:42 
QuestionSQL and ClickOnce Pin
Polymorpher15-Oct-07 11:52
Polymorpher15-Oct-07 11:52 
QuestionCascading Product Variants (E-Commerce) Pin
mm-2k15-Oct-07 7:56
mm-2k15-Oct-07 7:56 
Hi.

For the last 14 days i have been struggling with design pattern (T-SQL / Tables) for cascading product variants in a E-Commerce solution ("value-pairs pattern" / "diamond pattern"). I did find this DB diagram from IBM (http://publib.boulder.ibm.com/infocenter/wchelp/v5r5/topic/com.ibm.commerce.developer.doc/refs/rdmattribute.htm), which seams to be a good table design.

My problem is, that i cant figure out how, to make the SELECT statement for each cascading selection. Attributes should be selected in a specified order, each dropdown below is disabled until the previous selection is made.

Table design is like this:

"Product"
"ProductAttribute" (Relates each combination (T-Shirt, Small & Red) to a ProductID ..... AttributeID > ProductID)
"Attribute" (Relates "AttributeType" and "AttributeValue" together)
"AttributeType" (Type, Size, Color)
"AttributeValue" (T-Shirt, Jeans, Jacket, Small etc)

If i have 3 drop downs, with the following options:

Dropdown #1 (Type): T-Shirt, Jeans, Jacket
Dropdown #2 (Size): Small, Medium, Large, Extra Large etc.
Dropdown #3 (Color): Red, Green, Blue, Purple etc.

When the user selects a Type, Dropdown #2 is enabled and populates with possible values for Size. The problem is, how to make a T-SQL that only selects the available sized with the type "T-Shirt".

There is not limitation on how many Attribute each product can have. So a product could have X amount to attribute selections (dropdowns).



Thanks in advance
mm98 - Denmark

AnswerRe: Cascading Product Variants (E-Commerce) Pin
pmarfleet15-Oct-07 9:28
pmarfleet15-Oct-07 9:28 
QuestionSql Server Windows Authentication Mode in Workgroup Environment? Pin
DotNetWWW15-Oct-07 4:52
DotNetWWW15-Oct-07 4:52 
AnswerRe: Sql Server Windows Authentication Mode in Workgroup Environment? Pin
Pete O'Hanlon15-Oct-07 5:09
mvePete O'Hanlon15-Oct-07 5:09 
GeneralRe: Sql Server Windows Authentication Mode in Workgroup Environment? Pin
DotNetWWW15-Oct-07 6:33
DotNetWWW15-Oct-07 6:33 
GeneralRe: Sql Server Windows Authentication Mode in Workgroup Environment? Pin
Laxman Auti16-Oct-07 23:31
Laxman Auti16-Oct-07 23:31 
GeneralRe: Sql Server Windows Authentication Mode in Workgroup Environment? Pin
DotNetWWW17-Oct-07 2:44
DotNetWWW17-Oct-07 2:44 
Questionadd new user to sql server database 2005 Pin
Gazide15-Oct-07 3:50
Gazide15-Oct-07 3:50 
AnswerRe: add new user to sql server database 2005 Pin
Giorgi Dalakishvili15-Oct-07 4:02
mentorGiorgi Dalakishvili15-Oct-07 4:02 
GeneralRe: add new user to sql server database 2005 Pin
Hesham Amin16-Oct-07 3:49
Hesham Amin16-Oct-07 3:49 
QuestionTimeout problem Pin
gratisaccount15-Oct-07 3:46
gratisaccount15-Oct-07 3:46 
AnswerRe: Timeout problem Pin
kubben15-Oct-07 3:54
kubben15-Oct-07 3:54 
AnswerRe: Timeout problem Pin
Mike Dimmick15-Oct-07 3:56
Mike Dimmick15-Oct-07 3:56 
AnswerRe: Timeout problem Pin
gratisaccount15-Oct-07 18:51
gratisaccount15-Oct-07 18:51 
GeneralRe: Timeout problem Pin
kubben16-Oct-07 2:48
kubben16-Oct-07 2:48 
QuestionProblem with ISNULL Pin
braj yadav15-Oct-07 2:02
braj yadav15-Oct-07 2:02 
AnswerRe: Problem with ISNULL Pin
kubben15-Oct-07 2:45
kubben15-Oct-07 2:45 
AnswerRe: Problem with ISNULL Pin
Frank Kerrigan15-Oct-07 3:07
Frank Kerrigan15-Oct-07 3:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.