View Single Post
  #8 (permalink)  
Old Jun 21st, 2005, 17:59
D3mon D3mon is offline
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry, it looks Like it was INSERT INTO instead of SELECT INTO. Here's the query I use, perhaps you can modify it for your own purposes:

Code: Select all
INSERT INTO	tblOrderItem 
	
SELECT		@orderID as 'orderid',
		P.productid,
		multiple as 'quantity',
		P.Price as 'price' 
	
FROM 		tblBasketItems
	
INNER JOIN 	tblProducts P 
	ON 	P.ProductID = tblBasketItems.ProductID
		
WHERE 		tblBasketItems.basketID = @basketID
Reply With Quote