Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> (Revised) How is the design for this complex requirement ?
Hi All,
I have Customer hierarchy as follow :
CustomerCategory
CustomerType
CustomerGroup
Customer
Discount can be given to a CustomerCategory, or CustomerType, or a CustomerGroup, or a Customer , or to ALL Customer. Discount is defined in a Promotion Table
Customer Table :
CustomerCode
CustomerName
CustomerCategoryCode
CustomerTypeCode
CustomerGroupCode
Order Table :
OrderNo
OrderDate
CustomerCode
OrderGross
Discount
Promotion Table :
PromoNumber
PromoType (ALL / CustomerCategory / CustomerGroup / CustomerType /
Customer)
PCode (ALL / 'xxxx' )
Discount
The question is :
Thank you for your help,
xtanto
Received on Fri Sep 01 2006 - 11:34:55 CDT
![]() |
![]() |