DROP PROCEDURE IF EXISTS uspGetPedagogusIKTAdatszolgaltatasId 
GO
  CREATE PROCEDURE uspGetPedagogusIKTAdatszolgaltatasId
    @pIntezmenyId INT
    ,@pTanevId INT
    ,@pFelhasznaloId INT
  AS
  BEGIN
    SET NOCOUNT ON;

    SELECT ID
    FROM T_PEDAGOGUSIKTADATSZOLGALTATAS_OSSZES
    WHERE TOROLT = 'F'
      AND C_INTEZMENYID = @pIntezmenyId
      AND C_TANEVID = @pTanevId
      AND C_ALKALMAZOTTID = @pFelhasznaloId
  END
GO


