dbo.QBM_FGIModuleHigher
Scalar FunctionSQL_SCALAR_FUNCTIONSandbox DB
Interpretation
- Database function. Usually supports views, validation, or calculated predicates; look at referenced-by entries for callers.
Relations
- No extracted relations.
Typed Edges
- No typed edges extracted for this source.
Complete Source
1CREATE FUNCTION dbo.QBM_FGIModuleHigher(2 @Module1 varchar(3),3 @Module2 varchar(3)4) RETURNS varchar(35)6AS7BEGIN8 DECLARE @erg varchar(3)9 IF EXISTS(10 SELECT TOP 1 111 FROM dbo.QBMModuleDependCollection co12 WHERE13 co.UID_ModulePredecessor = @Module1 + '-Moduledefinition' AND co.UID_ModuleFollower = @Module2 + '-Moduledefinition')14 BEGIN15 SELECT @erg = @Module216 END17 ELSE18 BEGIN19 SELECT @erg = @Module120 END21 endLabel:22 RETURN(@erg)23END
Open raw exported source
1 create function dbo.QBM_FGIModuleHigher (@Module1 varchar(3) , @Module2 varchar(3) ) returns varchar(3) as begin declare @erg varchar(3) if2 exists (select top 1 1 from dbo.QBMModuleDependCollection co where co.UID_ModulePredecessor = @Module1 + '-Moduledefinition' and co.UID_ModuleFollower3 = @Module2 + '-Moduledefinition' ) begin select @erg = @Module2 end else begin select @erg = @Module1 end endLabel: return(@erg) end 4