Stuck on the codes
Posted: Thu Aug 17, 2006 2:35 am
Hi,
I have stuck at here with few hours and my problem is....
i have 2 fields which is optional attribute which mean the data can be null characters.
attribute name attribute data type attribute mandatory/optional
A char(3) optional
B char(3) optional
The business rules is "either A OR B is mandatory"
table A (look up to trans)
|
v
source - > transformer
|
table B (look up to trans)
how i wrote for this code whereby if A having value then B can be no value/having value. if B having value, A can have value/no value but if 2 value empty then all rejected....
Thank you
I have stuck at here with few hours and my problem is....
i have 2 fields which is optional attribute which mean the data can be null characters.
attribute name attribute data type attribute mandatory/optional
A char(3) optional
B char(3) optional
The business rules is "either A OR B is mandatory"
table A (look up to trans)
|
v
source - > transformer
|
table B (look up to trans)
how i wrote for this code whereby if A having value then B can be no value/having value. if B having value, A can have value/no value but if 2 value empty then all rejected....
Thank you