Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Creating a stored procedure that gets the current price when adding order detail.

$
0
0

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.


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>