- Procedure that loops through the Staging Table
- Update certain fields based on some rules
1. if [Data].[Finance_Project_
Number] = Null/Blank · Set [Processing_Result] = 2
· set [Processing_Result_Text] = “No Project Number”
2. if [Data].[Finance_Project_
Region] = Null/Blank · Set [Processing_Result] = 2
· set [Processing_Result_Text] = “No Region”
Also, on point no 2, how can I check for valid entries? Something like “one of”: Gauteng, Free State, Limpopo etc. If it is “one of” then it passes, otherwise;
· Set [Processing_Result] = 2
· set [Processing_Result_Text] = “Incorrect Region Entered”
3. Cross reference the customer number with another table.column: [Data].[Customer_Number] exists in [CustomerMaster].[Customer_
Code] if not:
· Set [Processing_Result] = 2
· set [Processing_Result_Text] = “Customer Number does not Exist”
Manas MohapatraPosted Jan 18, 2016, 2:27 AM
Nishant MittalPosted Jan 18, 2016, 3:32 AM
onmyway365 .Posted Jan 18, 2016, 3:28 AM
Nishant MittalPosted Jan 18, 2016, 3:25 AM
onmyway365 .Posted Jan 18, 2016, 2:40 AM
onmyway365 .Posted Jan 18, 2016, 2:19 AM
onmyway365 .Posted Jan 18, 2016, 2:16 AM
I am writing a C# windows service that validates the data in a Staging table, and then move certain records to a different table.
I was thinking of having a function called via a timed method.
Manas MohapatraPosted Jan 18, 2016, 2:14 AM
Nishant MittalPosted Jan 18, 2016, 2:06 AM