N
nycdon
I'm working on a system with extensive data validation and status checking.
It essentially matches up sellers with potential buyers, by checking through
all seller data to see if item meets their minimum purchase criteria.
Both seller and client purchase criteria are in parent-child hierarchy,
often with multiple levels of nesting, as indicated below.
My question is how to run a screening process, and compare these 2
heirarchical structures, to get an eventual list of potential cLients meeting
their purchase criteria.
The data to be validated and screened for status is in the parent table
Policy,
with numerous child tables linked by Policy ID.
Policy Table
PolicyID - PK
PolicyType (int)
PolicyLives Table
PolicyID - FK
LifeID - FK
Insured Table
LifeID - FK
State
Underwriter Table
LifeID - FK
LE (int)
Various items on Insured table and on Underwriter table, need to be screened
against CLient purchase criteria, using the following data structure:
(each client can have various purchase criteria rows, with multiple
underlying child rows to indicate what states applicable, which LE's
accepted, and which policy types acceptable, etc).
CLientInfo Table
CLientID - PK
ClientPurchaseCriteria Table
PurchCriteriaID - PK
ClientID - FK
MinFace(int)
MaxFace(int)
StateSpecific(y/n)
ClientStates Table
PurchCriteriaID - FK
State (text)
CLientLE Table
PurchCriteriaID - FK
AcceptableProvider (text)
Required (y/n)
ClientPolicyTypes
PurchCriteriaID - FK
Type (int)
Any assistance as to how to approach this type of screening would be greatly
appreciated!
It essentially matches up sellers with potential buyers, by checking through
all seller data to see if item meets their minimum purchase criteria.
Both seller and client purchase criteria are in parent-child hierarchy,
often with multiple levels of nesting, as indicated below.
My question is how to run a screening process, and compare these 2
heirarchical structures, to get an eventual list of potential cLients meeting
their purchase criteria.
The data to be validated and screened for status is in the parent table
Policy,
with numerous child tables linked by Policy ID.
Policy Table
PolicyID - PK
PolicyType (int)
PolicyLives Table
PolicyID - FK
LifeID - FK
Insured Table
LifeID - FK
State
Underwriter Table
LifeID - FK
LE (int)
Various items on Insured table and on Underwriter table, need to be screened
against CLient purchase criteria, using the following data structure:
(each client can have various purchase criteria rows, with multiple
underlying child rows to indicate what states applicable, which LE's
accepted, and which policy types acceptable, etc).
CLientInfo Table
CLientID - PK
ClientPurchaseCriteria Table
PurchCriteriaID - PK
ClientID - FK
MinFace(int)
MaxFace(int)
StateSpecific(y/n)
ClientStates Table
PurchCriteriaID - FK
State (text)
CLientLE Table
PurchCriteriaID - FK
AcceptableProvider (text)
Required (y/n)
ClientPolicyTypes
PurchCriteriaID - FK
Type (int)
Any assistance as to how to approach this type of screening would be greatly
appreciated!