DROP PROCEDURE IF EXISTS uspIsHrKezelo
GO
  CREATE PROCEDURE uspIsHrKezelo
     @pAlkalmazottId INT
    ,@pTanevId INT
  AS
  BEGIN
    SET NOCOUNT ON;

    SELECT a.C_ISHRKEZELO
    FROM T_ALKALMAZOTT_OSSZES a
    WHERE a.ID = @pAlkalmazottId
      AND a.TOROLT = 'F'
      AND a.C_ALTANEVID = @pTanevId
  END
GO


