Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The query the report uses looks something like this: Alter Stored Procedure spv_Report (@Fund varchar(100), @AsOfDate datetime) As Begin Create Table #Results ( Reportline varchar(100),

  1. The query the report uses looks something like this:

Alter Stored Procedure spv_Report

(@Fund varchar(100), @AsOfDate datetime)

As

Begin

Create Table #Results

( Reportline varchar(100),

Amount decimal(28,12))

Insert into #Results

Select ReportLine, Sum(Amount)

From FactGL As GL

Join AuxReportLineMatrix ARLM

on GL.AccountKey = ARLM.AccountKey

Where Fund = @FundKey and PostingDate <= @AsOFDate

Group by ReportLine

Insert into #Results

Select ReportLine, Sum(Amount)

From FactCommitment As CMT

Where Fund = @FundKey and PostingDate <= @AsOFDate

Group by ReportLine

Insert into #Results

Select ReportLine, Sum(Amount)

From FactMemo As Mem

Join AuxReportLineMatrix ARLM

on MEM.AccountKey = ARLM.AccountKey

Where Fund = @FundKey and PostingDate <= @AsOFDate

Group by ReportLine

Update #Results set Amount = Amount *.12 From #Results R

Join AuxReportLineMatrixFx ARLM

on R.ReportLine = ARLM.ReportLine

Where ARLM.CurrencyCode = 'disc'

Delete from #Results where Amount = 0

Select * from #Results

End

How do you find out where the Other Assets is comes from in the database tables?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions

Question

Proficiency with Microsoft Word, Excel, PowerPoint

Answered: 1 week ago

Question

Experience with SharePoint and/or Microsoft Project desirable

Answered: 1 week ago