Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

How to apply Validation transform?

$
0
0

Hi All,

 

How to apply validation for below rules?

 

Table Data:

 

Capture.PNG

EMPNODEPTNOP1P2P31P32P41P42P51P52P6P7P81P82P9
100110Y____________
100220NY/N
100330YY/N
100410N_
100520YY/N
100630N_
100710YY/N
100820N_
100930Y/N
101030Y/N
101110YY/N
101220N
101330Y/N

Validation rules are the following:

 

Any record fails meeting validation rules will flag as error.

 

1.P1 is either Y or N

2.If P1 is Y  ==>  remaining all are empty as shown in screen.

3.If P1 is N  ==>  P2,P31,P41,P51,P6,P7,P81,P9 are needed.

4.If P31 is N  ==>   P32 should be empty.

5.If P31 is Y  ==>   P32 either Y or N.

6.If P41 is N  ==>  P42 must be empty.

7.If P41 is Y  ==>  P42 either Y or N.

8.If P51 is N  ==>  then P52 must be empty

9.If P51 is Y  ==>  then P52 either Y or N.

10.If P81 is N  ==>  then P82 must be empty

11.If P81 is Y  ==>  then P82 either Y or N.

 

How to write validation?

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>