SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[p_act_treaties_companies_lst]
    @actor_id int
AS 
	set nocount on

	select *
	from act_treaties_companies
	where	@actor_id = 0 or trtc_actor_id = @actor_id 
GO
