Trying to learn more about stored procedures.
I would like to make a stored procedure in Northwind that adds a new order detail record without passing the price. It's only parameters should be the OrderID, the ProductID and the Quantity. The stored procedure should look up the current price of the product.
I know that's possible, I just can seem to wrap my head around how to write it.
Any help would be greatly appreciated.