
GO
/****** Object:  StoredProcedure [sp_GetNapKotottMunkaidoAdmin]    Script Date: 2016.10.12. 9:50:22 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

IF OBJECT_ID('[dbo].[sp_GetNapKotottMunkaidoAdmin]') IS NOT NULL 
BEGIN
  DROP PROCEDURE [dbo].[sp_GetNapKotottMunkaidoAdmin]
END  
GO

CREATE PROCEDURE [sp_GetNapKotottMunkaidoAdmin]
	@GroupId nvarchar(50)
AS
BEGIN
	SET NOCOUNT ON;

	SELECT
		nkm.ID
	FROM T_NEMKOTOTTMUNKAIDO nkm
	WHERE
		C_GROUPID = @GroupId AND TOROLT = 'F' AND C_MEGTARTOTT = 'T'

END