SlideShare a Scribd company logo
Calculation Package Obejective:  Will Calculate the total order by product. Wil calculate the total average by product. Will Calculate The total cost of the product. From Database source to Flat file destination
Target Outcome: ( SQL code) Use Adventureworks Select  p.ProductID, sum(p.Quantity) as [Quantity Sum], Sum(p.Quantity*ActualCost) as [Total Cost],  avg([t].[Total Cost]/[t].[Quantity Sum]) as [average] from  Production.TransactionHistoryArchive p ,(Select  ProductID, sum(Quantity) as [Quantity Sum], Sum(Quantity*ActualCost) as [Total Cost] from Production.TransactionHistoryArchive group by ProductID) t where p.ProductID = t.ProductID group by p.ProductID order by p.ProductID
Target Outcome : (SQL code) Snapshot:
Contol Flow
Note: Some task are created for testing purposes.
 
Data Flow Calculate values
Note : Some transformation are added for testing purposes .
Source: OLEDB Destination: dbo.Adventureworks SELECT  ProductID,Quantity,ActualCost FROM  Production.TransactionHistoryArchive
Derived Column: Calculate LineItemTotalCost Quantity * ActualCost
Aggregate : Sum Quantity and LineItemTotalCost [ProductID] = Group By(ProductID) [QuantitySum] = Sum (Quantity) [TotalCostById] = Sum(LineItemTotalCost)
Derived Column 2: Calculate Average Cost [AvgCostByID] = TotalCostByID / QuantitySum
Sort Transformation: Sort by ProductID Order By Product ID Desc
Destination: Flat File Destination: Load Data C:\DOCUME~1\KARLO~1.CAM\LOCALS~1\Temp
Configuration Package This will support the file system task for locating the specific flat file in the hard drive.
Destination
 

More Related Content

PDF
Cocoaheads Meetup / Alex Zimin / Swift magic
ODP
Use of django at jolt online v3
TXT
Program to find factorial of a number
DOCX
Talha 11009 call_quiz_addressing_modes
PPTX
OM-JSON - a JSON implementation of O&M
PPTX
General Programming on the GPU - Confoo
PDF
Cocoaheads Meetup / Alex Zimin / Swift magic
Use of django at jolt online v3
Program to find factorial of a number
Talha 11009 call_quiz_addressing_modes
OM-JSON - a JSON implementation of O&M
General Programming on the GPU - Confoo

What's hot (15)

PPTX
Prov and real things
PPT
Hibernate Session 4
DOCX
Bubble in link list
PPTX
Pa2 session 7
TXT
PDF
PDF
Advanced Crystal Reports: Techniques for compiling Annual Reports & other sta...
PPTX
Effective management of high volume numeric data with histograms
PDF
Altitude San Francisco 2018: WebAssembly Tools & Applications
PPTX
A standard for geospatial observations and measurements
DOCX
Stored procedure
PDF
Live in shell
PPT
TXT
PPTX
ADVANCED FEATURES OF C++
Prov and real things
Hibernate Session 4
Bubble in link list
Pa2 session 7
Advanced Crystal Reports: Techniques for compiling Annual Reports & other sta...
Effective management of high volume numeric data with histograms
Altitude San Francisco 2018: WebAssembly Tools & Applications
A standard for geospatial observations and measurements
Stored procedure
Live in shell
ADVANCED FEATURES OF C++
Ad

Viewers also liked (14)

PDF
PPTX
Administración de instituciones educativas
PPTX
Wh questions
PPTX
Kullu manali tour package
DOCX
Cmmaao pmi-resume template-17
PPTX
Identifying and Handling Children with Disabilities
PPT
Invito luce letturaurbana
PPTX
Computation overview 116456
PPTX
Marta kulczycka
PPTX
Re-use of standard ontologies in a water quality vocabulary
DOCX
Mission vishvas-resume template-8
PPTX
All bound up? Monetary policy in recovery and beyond
PPSX
демонстрація
Administración de instituciones educativas
Wh questions
Kullu manali tour package
Cmmaao pmi-resume template-17
Identifying and Handling Children with Disabilities
Invito luce letturaurbana
Computation overview 116456
Marta kulczycka
Re-use of standard ontologies in a water quality vocabulary
Mission vishvas-resume template-8
All bound up? Monetary policy in recovery and beyond
демонстрація
Ad

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Big Data Technologies - Introduction.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Machine Learning_overview_presentation.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
cuic standard and advanced reporting.pdf
PPTX
Spectroscopy.pptx food analysis technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
MIND Revenue Release Quarter 2 2025 Press Release
Building Integrated photovoltaic BIPV_UPV.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Network Security Unit 5.pdf for BCA BBA.
Assigned Numbers - 2025 - Bluetooth® Document
Reach Out and Touch Someone: Haptics and Empathic Computing
Big Data Technologies - Introduction.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Digital-Transformation-Roadmap-for-Companies.pptx
Machine Learning_overview_presentation.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Spectral efficient network and resource selection model in 5G networks
Diabetes mellitus diagnosis method based random forest with bat algorithm
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
cuic standard and advanced reporting.pdf
Spectroscopy.pptx food analysis technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
The AUB Centre for AI in Media Proposal.docx
sap open course for s4hana steps from ECC to s4
MIND Revenue Release Quarter 2 2025 Press Release

Calculation Package

  • 1. Calculation Package Obejective: Will Calculate the total order by product. Wil calculate the total average by product. Will Calculate The total cost of the product. From Database source to Flat file destination
  • 2. Target Outcome: ( SQL code) Use Adventureworks Select p.ProductID, sum(p.Quantity) as [Quantity Sum], Sum(p.Quantity*ActualCost) as [Total Cost], avg([t].[Total Cost]/[t].[Quantity Sum]) as [average] from Production.TransactionHistoryArchive p ,(Select ProductID, sum(Quantity) as [Quantity Sum], Sum(Quantity*ActualCost) as [Total Cost] from Production.TransactionHistoryArchive group by ProductID) t where p.ProductID = t.ProductID group by p.ProductID order by p.ProductID
  • 3. Target Outcome : (SQL code) Snapshot:
  • 5. Note: Some task are created for testing purposes.
  • 6.  
  • 8. Note : Some transformation are added for testing purposes .
  • 9. Source: OLEDB Destination: dbo.Adventureworks SELECT ProductID,Quantity,ActualCost FROM Production.TransactionHistoryArchive
  • 10. Derived Column: Calculate LineItemTotalCost Quantity * ActualCost
  • 11. Aggregate : Sum Quantity and LineItemTotalCost [ProductID] = Group By(ProductID) [QuantitySum] = Sum (Quantity) [TotalCostById] = Sum(LineItemTotalCost)
  • 12. Derived Column 2: Calculate Average Cost [AvgCostByID] = TotalCostByID / QuantitySum
  • 13. Sort Transformation: Sort by ProductID Order By Product ID Desc
  • 14. Destination: Flat File Destination: Load Data C:\DOCUME~1\KARLO~1.CAM\LOCALS~1\Temp
  • 15. Configuration Package This will support the file system task for locating the specific flat file in the hard drive.
  • 17.