I really would appreciate your help.
Perhaps this is a fairly simple problem to solve - but I'm not the one who ...; -)
I have two tables in SQL Server:
Now I want to select a specific set of identifiers and insert some entries in the price table with these identifiers.
eg. (SQL does not work correctly)
INSERT INTO prices (group, id, price) VALUES (7, (select articleId from article WHERE name LIKE 'ABC%'), 1.50);
SQL error -> subquery has more than 1 value
thanks for the help
sql insert subquery
Futuretec Mar 13 '12 at 21:15 2012-03-13 21:15
source share