![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi This is a recurring question here, but I have read through the archive and failed to find a answer so here goes. Consider the following use cases: - When a customer purchases product A he automatically gets product B - Product C can only be bought with product A (either if you have A already or in the same order) - Product D cannot be bought with C - When you purchase X number of product type E then you can not purchase more than Y of product type F - A certain product combination (number and types) should yield a discount. as seen there exists the concept of a single product and that of a product type (family of products), the business rules should be able to work on both single products and on product types. The question now is how best to deal with such rules from a DB point of view, is there a relational design general enough to cope with such rules ? or do I have to resolve to stored *procedures and constraints ?. |
#3
| |||
| |||
|
|
Hi This is a recurring question here, but I have read through the archive and failed to find a answer so here goes. Consider the following use cases: - When a customer purchases product A he automatically gets product B - Product C can only be bought with product A (either if you have A already or in the same order) - Product D cannot be bought with C - When you purchase X number of product type E then you can not purchase more than Y of product type F - A certain product combination (number and types) should yield a discount. as seen there exists the concept of a single product and that of a product type (family of products), the business rules should be able to work on both single products and on product types. The question now is how best to deal with such rules from a DB point of view, is there a relational design general enough to cope with such rules ? or do I have to resolve to stored *procedures and constraints ?. |
#4
| |||
| |||
|
|
Hi This is a recurring question here, but I have read through the archive and failed to find a answer so here goes. Consider the following use cases: - When a customer purchases product A he automatically gets product B - Product C can only be bought with product A (either if you have A already or in the same order) - Product D cannot be bought with C - When you purchase X number of product type E then you can not purchase more than Y of product type F - A certain product combination (number and types) should yield a discount. as seen there exists the concept of a single product and that of a product type (family of products), the business rules should be able to work on both single products and on product types. The question now is how best to deal with such rules from a DB point of view, is there a relational design general enough to cope with such rules ? or do I have to resolve to stored *procedures and constraints ?. |
#5
| |||
| |||
|
|
Hi This is a recurring question here, but I have read through the archive and failed to find a answer so here goes. Consider the following use cases: - When a customer purchases product A he automatically gets product B - Product C can only be bought with product A (either if you have A already or in the same order) - Product D cannot be bought with C - When you purchase X number of product type E then you can not purchase more than Y of product type F - A certain product combination (number and types) should yield a discount. as seen there exists the concept of a single product and that of a product type (family of products), the business rules should be able to work on both single products and on product types. The question now is how best to deal with such rules from a DB point of view, is there a relational design general enough to cope with such rules ? or do I have to resolve to stored *procedures and constraints ?. |
#6
| |||
| |||
|
|
Hi This is a recurring question here, but I have read through the archive and failed to find a answer so here goes. Consider the following use cases: - When a customer purchases product A he automatically gets product B - Product C can only be bought with product A (either if you have A already or in the same order) - Product D cannot be bought with C - When you purchase X number of product type E then you can not purchase more than Y of product type F - A certain product combination (number and types) should yield a discount. as seen there exists the concept of a single product and that of a product type (family of products), the business rules should be able to work on both single products and on product types. The question now is how best to deal with such rules from a DB point of view, is there a relational design general enough to cope with such rules ? or do I have to resolve to stored *procedures and constraints ?. |
#7
| |||
| |||
|
|
Hi This is a recurring question here, but I have read through the archive and failed to find a answer so here goes. Consider the following use cases: - When a customer purchases product A he automatically gets product B - Product C can only be bought with product A (either if you have A already or in the same order) - Product D cannot be bought with C - When you purchase X number of product type E then you can not purchase more than Y of product type F - A certain product combination (number and types) should yield a discount. as seen there exists the concept of a single product and that of a product type (family of products), the business rules should be able to work on both single products and on product types. The question now is how best to deal with such rules from a DB point of view, is there a relational design general enough to cope with such rules ? or do I have to resolve to stored *procedures and constraints ?. |
#8
| |||
| |||
|
|
Hi This is a recurring question here, but I have read through the archive and failed to find a answer so here goes. Consider the following use cases: - When a customer purchases product A he automatically gets product B - Product C can only be bought with product A (either if you have A already or in the same order) - Product D cannot be bought with C - When you purchase X number of product type E then you can not purchase more than Y of product type F - A certain product combination (number and types) should yield a discount. as seen there exists the concept of a single product and that of a product type (family of products), the business rules should be able to work on both single products and on product types. The question now is how best to deal with such rules from a DB point of view, is there a relational design general enough to cope with such rules ? or do I have to resolve to stored *procedures and constraints ?. |
#9
| |||
| |||
|
|
Hi This is a recurring question here, but I have read through the archive and failed to find a answer so here goes. Consider the following use cases: - When a customer purchases product A he automatically gets product B - Product C can only be bought with product A (either if you have A already or in the same order) - Product D cannot be bought with C - When you purchase X number of product type E then you can not purchase more than Y of product type F - A certain product combination (number and types) should yield a discount. as seen there exists the concept of a single product and that of a product type (family of products), the business rules should be able to work on both single products and on product types. The question now is how best to deal with such rules from a DB point of view, is there a relational design general enough to cope with such rules ? or do I have to resolve to stored *procedures and constraints ?. |
#10
| |||
| |||
|
|
Hi This is a recurring question here, but I have read through the archive and failed to find a answer so here goes. Consider the following use cases: - When a customer purchases product A he automatically gets product B - Product C can only be bought with product A (either if you have A already or in the same order) - Product D cannot be bought with C - When you purchase X number of product type E then you can not purchase more than Y of product type F - A certain product combination (number and types) should yield a discount. as seen there exists the concept of a single product and that of a product type (family of products), the business rules should be able to work on both single products and on product types. The question now is how best to deal with such rules from a DB point of view, is there a relational design general enough to cope with such rules ? or do I have to resolve to stored *procedures and constraints ?. |
![]() |
| Thread Tools | |
| Display Modes | |
| |