Avatar of SQLSearcher
SQLSearcher

asked on 

SSIS Check Sales amount and Bank amount is within 10%

Hello Experts Exchange
I have two tables one with Sales amount and a second table with banked amount.

I have written a SSIS package to see when these figures match, but I now need to check if these figures are with 10% of each other.

How do I do this within a SSIS package?

Regards

SQLSearcher
Microsoft SQL ServerVisual Basic.NETMicrosoft SQL Server 2008SSIS

Avatar of undefined
Last Comment
SQLSearcher
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

<Knee-jerk reaction>

Since you're testing data in tables, why not create a Stored Procedure that does this testing and returns a value of Success/Fail (or whatever floats your boat).  

Then in SSIS add an Execute SQL Task to run this SP and store the return value in a variable  Then in the following Precedence Constraint (aka green arrow) test this value and map the package flow accordingly.
Avatar of SQLSearcher
SQLSearcher

ASKER

Hello Jim
Sorry I did not mention that I have a Derived Column that works out the till date and checks for bank holidays to do the matching.

So I need to keep it within the same data flow.

Regards

SQLSearcher
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

There's really no way to answer this unless you show us screen shots of your SSIS package, and some sample data.
ASKER CERTIFIED SOLUTION
Avatar of SQLSearcher
SQLSearcher

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of SQLSearcher
SQLSearcher

ASKER

Found my own solution.
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo