DROP PROCEDURE IF EXISTS uspGetFollowupAlkalmazott
GO
  CREATE PROCEDURE uspGetFollowupAlkalmazott
    @pId INT
  AS
  BEGIN
    SET NOCOUNT ON;

    SELECT a.ID
    FROM T_ALKALMAZOTT_OSSZES a
    WHERE a.ELOZOTANEVIREKORDID = @pId
      AND a.TOROLT = 'F'
  END
GO
