SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
create procedure [dbo].[p_policies_accounts_data]
	@policies_ids_table type_table_id readonly
as
	set nocount ON

	select ppa.*
	from pol_policies_accounts ppa
		inner join @policies_ids_table pit on pit.id = ppa.polacc_policy_id
GO
