DROP PROCEDURE  IF EXISTS uspGetOsszesTanevekEugyintezes 
GO

CREATE PROCEDURE uspGetOsszesTanevekEugyintezes
   @pIntezmenyId INT
AS
BEGIN
  SET NOCOUNT ON;

  SELECT ID AS KretaAzonosito
    ,C_AKTIV AS Aktiv
    ,C_KOVETKEZO AS Kovetkezo
    ,C_NEV AS Nev
    ,C_KEZDONAP AS Kezdete
    ,C_UTOLSONAP AS Vege
  FROM T_TANEV_OSSZES Tanev
  WHERE Tanev.TOROLT = 'F'
    AND Tanev.C_INTEZMENYID = @pIntezmenyId
END
GO


