Advertisement
Advertisement
| 04.29.2008 at 08:11PM PDT, ID: 23364305 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: |
ALTER PROCEDURE [dbo].[bbiStoresp_OrdersGetInfo] (@OrderID int) AS -- Get list of orders SELECT OrderID, (SELECT Size, SUM(Subtotal) FROM bbiStore_tbl_OrderDetails WHERE OrderID = @OrderID) AS TotalAmount ,DateCreated ,DateShipped ,Verified ,Completed ,Canceled ,Comments ,CustomerName ,ShippingAddress ,CustomerEmail FROM bbiStore_tbl_Orders WHERE OrderID = @OrderID |