uspgenerator.GeneratorUsp_StepList - V
type: V ( view ), modify_date: 2021-10-02 13:23:34
RepoObject_guid: 4790291C-9D61-EB11-84DC-A81E8446D5B0
Columns
PK | Column Name | Data Type | NULL? | ID |
---|---|---|---|---|
|
|
|||
|
|
|||
|
|
Indexes
idx_GeneratorUsp_StepList__1
-
IndexSemanticGroup: no_group
-
[column-usp_id]; int
-
-
PK, Unique, Real: 0, 0, 0
sql_modules_definition
uspgenerator.GeneratorUsp_StepList - V script
/*
SQL for the list of all steps
*/
CREATE View uspgenerator.GeneratorUsp_StepList
As
Select
us.usp_id
, StepList = String_Agg ( Concat ( Cast('' As NVarchar(Max)), us.SqlStep ), Char ( 13 ) + Char ( 10 )) Within Group(Order By
us.RowNumber_PerUsp)
, AdocStepList = String_Agg ( Concat ( Cast('' As NVarchar(Max)), us.AdocStep ), Char ( 13 ) + Char ( 10 )) Within Group(Order By
us.RowNumber_PerUsp)
From
uspgenerator.GeneratorUspStep_Sql As us
Group By
us.usp_id