SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[p_grid_grpcls_classes_by_brand]
    @group_code ais_code_short,
    @brand_code ais_code_short,
    @class_code ais_code_medium
AS 

	/*
	[DGE]
	Procedura intoarce lista claselor pentru un grup & brand
	*/

	select	distinct clsc_class_code
	from	grpcls_classes 
	where	clsc_group_code = @group_code
	AND		clsc_brand_code = @brand_code
	AND		(
				@class_code = '%' OR clsc_class_code = @class_code
			)



GO
