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

    SELECT C_KRETATIPUS
    FROM T_INTEZMENYADATOK_OSSZES
    WHERE TOROLT = 'F'
      AND C_INTEZMENYID = @pIntezmenyId
      AND C_TANEVID = @pTanevId
  END
GO


