init
This commit is contained in:
24
DataPRO_sql/dbo.foo_GetTotalChannelCount.sql
Normal file
24
DataPRO_sql/dbo.foo_GetTotalChannelCount.sql
Normal file
@@ -0,0 +1,24 @@
|
||||
USE [DataPRO]
|
||||
GO
|
||||
|
||||
/****** Object: UserDefinedFunction [dbo].[foo_GetTotalChannelCount] Script Date: 1/25/2019 2:35:50 PM ******/
|
||||
SET ANSI_NULLS ON
|
||||
GO
|
||||
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
GO
|
||||
|
||||
|
||||
CREATE FUNCTION [dbo].[foo_GetTotalChannelCount]
|
||||
(
|
||||
@GroupId int
|
||||
)
|
||||
RETURNS int
|
||||
AS
|
||||
BEGIN
|
||||
return (SELECT COUNT(*) FROM [DataPro].[dbo].[Channels] WHERE GroupId = @GroupId)
|
||||
END
|
||||
|
||||
|
||||
GO
|
||||
|
||||
Reference in New Issue
Block a user