DWStaging
 dbo.arch_GLRolloverBalances (View)
  Properties
Property Value
Name arch_GLRolloverBalances
Schema dbo
Quoted Identifier Status True
Ansi Nulls Status True
Returns View Metadata False
Create Date 9/30/2015 2:06 PM
Description
  Columns
Column Name
Data Type
Allow Nulls
Fulltext Indexed
Identity
Description / Computed Formula
numeric(17, 2)
False
False
False
numeric(17, 2)
False
False
False
numeric(17, 2)
False
False
False
int(10, 0)
True
False
False
varchar(1)
True
False
False
varchar(25)
True
False
False
varchar(9)
True
False
False
varchar(5)
True
False
False
varchar(2)
True
False
False
varchar(16)
True
False
False
numeric(17, 2)
False
False
False
varchar(6)
True
False
False
varchar(4)
True
False
False
  Triggers
Name Insert Update Delete Instead
  Indexes
Name Clustered Columns
  Parent Dependencies (objects that dbo.arch_GLRolloverBalances depends on)
Name Type
Table
Table
  Child Dependencies (objects that depend on dbo.arch_GLRolloverBalances)
Name Type
TABLE
TABLE
  Extended Properties
Object Property Value
   Annotations
Object Property Value
  DDL
/****** Object: View [dbo].[arch_GLRolloverBalances] Script Date: 03/09/2017 16:47:09 ******/
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
CREATE VIEW [dbo].[arch_GLRolloverBalances]
AS
SELECT 
       CAST(Ledger.FISCAL_YEAR AS Int) AS FiscalYear
      ,LEFT(Ledger.GL_ACCT_NO,1) AS Fund
      ,SUBSTRING(Ledger.GL_ACCT_NO,1,16) AS OrgUnit
      ,SUBSTRING(Ledger.GL_ACCT_NO,17,9) AS GlCode
      ,SUBSTRING(Ledger.GL_ACCT_NO, 9, 6) AS Qual1
      ,SUBSTRING(Ledger.GL_ACCT_NO, 15, 2) AS Location
      ,SUBSTRING(Ledger.GL_ACCT_NO, 17, 5) AS GlCode5
      ,SUBSTRING(Ledger.GL_ACCT_NO, 22, 4) AS Qual2    
      ,GL_ACCT_NO AS GlAccountNumber
      ,ISNULL(Monthly.AMOUNT, 0) AS Amount
      ,ISNULL(Monthly.COMMITMENT, 0) AS Commitment
      ,ISNULL(Monthly.ENCUMBRANCE,0) AS Encumbrance
      ,ISNULL(POOL_ALLOCATION,0) AS PoolAllocation
  FROM GENERAL_LEDGER_FILE Ledger
 
 INNER JOIN GENERAL_LEDGER_FILE_MONTHLY_ACCUMS Monthly
 ON
   ( 
     Ledger.ISN_GENERAL_LEDGER_FILE = Monthly.ISN_GENERAL_LEDGER_FILE
     AND Monthly.cnxarraycolumn = 0
     AND 
     (  Monthly.AMOUNT IS NOT NULL
        OR Monthly.ENCUMBRANCE IS NOT NULL 
        OR Monthly.COMMITMENT IS NOT NULL
        OR Monthly.POOL_ALLOCATION IS NOT NULL
     )
   )
Powered by BI Documenter