sql view in how can I return the return value from the function into the function
select
dbo.fn_CalculatePrice
(
p.Price,
p.CargoPrice,
p.Factor,
p.PointRatio,
null,
p.OperactivePromoCode,
SELECT IncludingCargoPrice FROM [dbo].[fn_Parameter](),
SELECT IncludingProductKdv FROM [dbo].[fn_Parameter]()) AS Price
From Product as p
[dbo].[fn_CalculatePrice] func parameters
(
@Price money,
@CargoPrice money,
@CatFactor decimal(8,4),
@PointRatio decimal(8,4),
@HBFactor decimal(8,4),
@PromoCode nvarchar(50),
@includingCargoPrice bit,
@includingProductKdv bit
)
fn_Parameter func return table
{
IncludingCargoPrice bit,
IncludingProductKdv bit,
}
Error: Incorrect syntax near the keyword 'SELECT'