Subquery returned more than 1 value
Posted on 2010-01-05
INSERT INTO information
(SELECT productid from products where productid = 149880 ),
(select internalsku from products where productid IN (select productid from orderitems left join orders on orderitems.orderid = orders.orderid where orderitems.orderid > '7000149' )),
(SELECT orderid from orders where orderid = 7000149 )
select * from information
Msg 512, Level 16, State 1, Line 1
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated.
(20 row(s) affected)