
Important Point:Rule xx-0006 uses a complex WHERE Clause to mask over the PHONE_NUMBER values set by rule 02-0005 and set them to values appropriate to employees located in the UK (example: 01527 559 131). Note carefully the usage of the DMO1 alias in the WHERE Clause in conjunction with the Alphanumeric Text dataset to produce the desired output value. Have a look at the ER diagram for the HR schema to see why such a complex WHERE statement was necessary - the country code is not located in the EMPLOYEES table and an intermediate join table was required.
Also note that rule xx-0006 is dependent on rule 02-0005 and will not execute until rule 02-0005 completes. If you do not understand the concept of rule dependencies it is highly recommended that you read the Rule Blocks and Dependencies help page and also view the Using Rule Blocks and Dependencies tutorial to better understand how to explicitly control the execution order of the masking rules. [local] [internet]. It would also be useful to review the discussion of rules 0005 and 0006 in the Scrambling Data in the Scott Schema help page.