Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
36 views4 pages

Data Validation With Left

The document provides examples of customer and employee data, focusing on specific validation rules for customer names, product codes, and employee codes. It outlines requirements such as extracting characters from names, ensuring product codes have a specific format, and enforcing unique and correctly formatted employee codes. Each example illustrates different validation criteria and expected outputs.

Uploaded by

Ravi Gaud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views4 pages

Data Validation With Left

The document provides examples of customer and employee data, focusing on specific validation rules for customer names, product codes, and employee codes. It outlines requirements such as extracting characters from names, ensuring product codes have a specific format, and enforcing unique and correctly formatted employee codes. Each example illustrates different validation criteria and expected outputs.

Uploaded by

Ravi Gaud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Example 1

Customer Order Quantity Product Code Customer


john larson 120 ID-001/14-15 john
Francis Montgomery 126 ID-002/14-15 Fran
Jenna Saiz 67 ID-003/14-15 Jenn
Kelly Pickett 98 ID-004/14-15 Kell
Maria Hernandez 111 ID-005/14-15 Mari
Hugo Laws 210 ID-006/14-15 Hugo
Richard Baker 106 ID-007/14-15 Rich
Joel McKinney 130 ID-008/14-15 Joel
Steve Cano 36 ID-009/14-15 Stev

Extract first four character of customer name

Example 3
Employee Code Name Salary
E009 Sumit Sharma 18000
E123 Manoj Patra 30000
E076 Ajit Roy 13000
E154 Surajit Sen 16000
E999 Robert Peter 8400
E101 Sumita Pal 4500
E012 Amit Sana 28000
E002 Debasish Dey 6000
E045 Rahul Singh 12000
E980 Ansuman Baidya 6500

Employee code accept only 4 digit code

Example 5
Employee Code Name Salary
E010 Sumit Sharma 18000 1 TRUE
E011 Manoj Patra 30000 1 TRUE
E012 Ajit Roy 13000 1 TRUE
E013 Surajit Sen 16000 1 TRUE
E014 Robert Peter 8400 1 TRUE
E015 Sumita Pal 4500 1 TRUE
E016 Amit Sana 28000 1 TRUE
E017 Debasish Dey 6000 1 TRUE
E018 Rahul Singh 12000 1 TRUE
E019 Ansuman Baidya 6500 1 TRUE

Employee code accept unique 4 digit code

Example 7
Customer Order Quantity Product Code
john larson 120 ID-001/14-15 FALSE
Francis Montgomery 126 ID-002/14-15 FALSE
Jenna Saiz 67 ID-003/14-15 FALSE
Kelly Pickett 98 ID-004/14-15 FALSE
Maria Hernandez 111 ID-005/14-15 FALSE
Hugo Laws 210 ID-006/14-15 FALSE
Richard Baker 106 ID-007/14-15 FALSE
Joel McKinney 130 ID-008/14-15 FALSE
Steve Cano 36 ID-009/14-15 FALSE

Product code onle accept code with prefix "ID"

Example 9
Customer Order Quantity Product Code
john larson 120 ID-001/14-15 TRUE
Francis Montgomery 126 ID-002/14-15 TRUE
Jenna Saiz 67 ID-003/14-15 TRUE
Kelly Pickett 98 ID-004/14-15 TRUE
Maria Hernandez 111 ID-005/14-15 TRUE
Hugo Laws 210 ID-006/14-15 TRUE
Richard Baker 106 ID-007/14-15 TRUE
Joel McKinney 130 ID-008/14-15 TRUE
Steve Cano 36 ID-009/14-15 TRUE

Product code only accept 12 digit code with Prefix "ID" and suffix "/14-15"
Example 2
Customer Order Quantity Product Code Customer No. of char
john larson 120 ID-001/14-15 son 11
Francis Montgomery 126 ID-002/14-15 ery 18
Jenna Saiz 67 ID-003/14-15 aiz 10
Kelly Pickett 98 ID-004/14-15 ett 13
Maria Hernandez 111 ID-005/14-15 dez 15
Hugo Laws 210 ID-006/14-15 aws 9
Richard Baker 106 ID-007/14-15 ker 13
Joel McKinney 130 ID-008/14-15 ney 13
Steve Cano 36 ID-009/14-15 ano 10

Extract last three character of customer name and also the number of characters

Example 4
Employee Code Name Salary
E009 Sumit Sharma 18000 TRUE
E123 Manoj Patra 30000 TRUE
E076 Ajit Roy 13000 TRUE
E154 Surajit Sen 16000 TRUE
E999 Robert Peter 8400 TRUE
E101 Sumita Pal 4500 TRUE
E012 Amit Sana 28000 TRUE
E002 Debasish Dey 6000 TRUE
E045 Rahul Singh 12000 TRUE
E980 Ansuman Baidya 6500 TRUE

Employee code accept text that begins with "E" and is


exactly 4 character long

Example 6
Employee Code Name Salary
E010 Sumit Sharma 18000
E011 Manoj Patra 30000
E012 Ajit Roy 13000
E013 Surajit Sen 16000
E014 Robert Peter 8400
E015 Sumita Pal 4500
E016 Amit Sana 28000
E017 Debasish Dey 6000
E018 Rahul Singh 12000
E019 Ansuman Baidya 6500

Employee code accept 4 digit code with prefix "E0"

Example 8
Customer Order Quantity Product Code
john larson 120 ID-001/14-15 TRUE
Francis Montgomery 126 ID-002/14-15 TRUE
Jenna Saiz 67 ID-003/14-15 TRUE
Kelly Pickett 98 ID-004/14-15 TRUE
Maria Hernandez 111 ID-005/14-15 TRUE
Hugo Laws 210 ID-006/14-15 TRUE
Richard Baker 106 ID-007/14-15 TRUE
Joel McKinney 130 ID-008/14-15 TRUE
Steve Cano 36 ID-009/14-15 TRUE

Product code only accept code with suffix "/14-15"

You might also like