use the Scalar-valued function created in question 2.2 to print "The Total cost of the products we have is R", return the Total cost from the function in rands.(4) code example
Example 1: functions with parameters SQL
SET @OrderID = dbo.GetOrderID (default, default, default);
Example 2: functions with parameters SQL
EXEC @OrderID = dbo.GetOrderID
@OrderType = @OrderType,
@ServiceSpeed = @Qty,
@Qty = @ServiceSpeed;