Hi,
I just thought i would share the correct solution to this. Thanks to Brad Schulz from the MSDN community forums for providing me with the following...
declare @NewOptionGroup int
, @CopyFromOptionGroup int
SELECT @NewOptionGroup=9
, @CopyFromOptionGroup=7
INSERT INTO XRef (idProduct,idOptionGroup)
SELECT idProduct,@NewOptionGroup
FROM XRef
WHERE idOptionGroup=@CopyFromOptionGroup
I am new to all this, so i don't think i needed to declare the @CopyFromOptionGroup as 7, maybe just specified this within the query itself as 7, but seems though i am new, and it worked, i am not in a position to query it :-)
Anyway, just thought i would share the answer in case any others need to know this.
Thanks
Andrew