SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[p_grid_grpcls_models_by_brand]
    @group_code ais_code_short,
    @brand_code ais_code_short,
    @model varchar(50) = '%'
AS 

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

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






GO
