Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.85 KB | None | 0 0
  1.     select
  2.         ifrs17guif2_.[FUNCTION_NAME] as col_0_0_,
  3.         dimifrs17b1_.[VALID_FROM] as col_1_0_,
  4.         dimifrs17b1_.[VALID_TO] as col_2_0_,
  5.         ifrs17guif0_.[USER_NAME] as col_3_0_,
  6.         ifrs17guif0_.[EVENT_TIME_STAMP] as col_4_0_,
  7.         ifrs17guif0_.[FUNCTION_STATUS] as col_5_0_
  8.     from
  9.         [META].[dbo].[IFRS17_GUI_FUNCTION_STATUS_HISTORY] ifrs17guif0_ cross
  10.     join
  11.         [DW].[DW].[dim_ifrs17_business_validity] dimifrs17b1_
  12.     inner join
  13.         [META].[dbo].[IFRS17_GUI_FUNCTIONS] ifrs17guif2_
  14.             on (
  15.                 ifrs17guif0_.[FUNCTION_ID]=ifrs17guif2_.[FUNCTION_ID]
  16.             )
  17.     where
  18.         ifrs17guif0_.[FUNCTION_ID]=ifrs17guif2_.[FUNCTION_ID]
  19.         and ifrs17guif0_.[DML_TYPE]<>'D'
  20.         and dimifrs17b1_.[IS_ACTIVE]=1
  21.     order by
  22.         ifrs17guif0_.[EVENT_TIME_STAMP] desc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement