marjan_gh
یک شنبه 25 اسفند 1392, 15:52 عصر
ALTER PROCEDURE [dbo].[sp_Specific_feature_Product]
@productId int , @featureCategoryId int
AS
declare @x int
BEGIN
SET NOCOUNT ON;
begin transaction
select @x=(select DISTINCT featureUnitId from View_product where productId=@productId AND featureCategoryId=@featureCategoryId)
select DISTINCT featureName,featureValue,(select featureUnitName from tblFeatureUnit where featureUnitId=@x) as featureUnitName from View_product where productId=@productId AND featureCategoryId=@featureCategoryId
commit
END
@productId int , @featureCategoryId int
AS
declare @x int
BEGIN
SET NOCOUNT ON;
begin transaction
select @x=(select DISTINCT featureUnitId from View_product where productId=@productId AND featureCategoryId=@featureCategoryId)
select DISTINCT featureName,featureValue,(select featureUnitName from tblFeatureUnit where featureUnitId=@x) as featureUnitName from View_product where productId=@productId AND featureCategoryId=@featureCategoryId
commit
END