845. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/26/2017 10:44:49 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

845.1 Files compared

# Location File Last Modified
1 OSCIF_BMS_v2_iter 2_September_2017.zip\BMS_Cand\Source\Sources\Database\CreationScripts\BMS_DW\2.Functions dbo.ufn_GetFacilityIdByIdentifier.UserDefinedFunction.sql Wed Oct 18 19:15:50 2017 UTC
2 OSCIF_BMS_v2_iter 2_September_2017.zip\BMS_Cand\Source\Sources\Database\CreationScripts\BMS_DW\2.Functions dbo.ufn_GetFacilityIdByIdentifier.UserDefinedFunction.sql Thu Oct 26 19:48:33 2017 UTC

845.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 66
Changed 1 2
Inserted 0 0
Removed 0 0

845.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

845.4 Active regular expressions

No regular expressions were active.

845.5 Comparison detail

  1   /****** Ob ject:  Use rDefinedFu nction [db o].[ufn_Ge tFacilityI dByIdentif ier]    Sc ript Date:  03/21/201 2 16:03:44  ******/
  2   IF  EXISTS  (SELECT *  FROM sys. objects WH ERE object _id = OBJE CT_ID(N'[d bo].[ufn_G etFacility IdByIdenti fier]') AN D type in  (N'FN', N' IF', N'TF' , N'FS', N 'FT'))
  3   DROP FUNCT ION [dbo]. [ufn_GetFa cilityIdBy Identifier ]
  4   GO
  5  
  6   SET ANSI_N ULLS ON
  7   GO
  8   SET QUOTED _IDENTIFIE R ON
  9   GO
  10   -- ======= ========== ========== ========== ========
  11   -- Author:                
P II
  12   -- Create  date: 10/1 4/2011
  13   -- Descrip tion: Get  facility i d by Ien
  14   -- ======= ========== ========== ========== ========
  15   CREATE FUN CTION [dbo ].[ufn_Get FacilityId ByIdentifi er] 
  16   (
  17           @F ACILITY_ID ENTIFIER n varchar(25 0)
  18   )
  19   RETURNS IN T
  20   AS
  21   BEGIN
  22           
  23           DE CLARE @FAC ILITY_ID I NT
  24           SE LECT  @FAC ILITY_ID =  FACILITY. ID
  25                             FROM d bo.DIM_ORG ANIZATION  AS FACILIT Y
  26                             INNER  JOIN dbo.D IM_ORGANIZ ATION_TYPE  ORGANIZAT ION_TYPE O N ORGANIZA TION_TYPE. ID=FACILIT Y.DIM_ORGA NIZATION_T YPE_ID
  27                             WHERE  FACILITY.S OURCE_ID =  @FACILITY _IDENTIFIE R AND ORGA NIZATION_T YPE.CODE =  'FAC';
  28           
  29           IF  @FACILITY _ID IS NUL L
  30                    SET  @FACILITY_ ID = 0;                     
  31           
  32           RE TURN @FACI LITY_ID
  33   END
  34   GO