K
Ken Ellis
I have a table 'Temp' with two columns(SerialNumber and ProductDescription)
and 20 rows. I am trying to use this table to delete any rows in a table
called 'Target' with SerialNumbers that appear in 'Temp'. This is my
attempt:
DELETE *
FROM Target
WHERE Target.SerialNumber =
(SELECT SerialNumber
FROM Temp)
When I try to run the query I get the message:"At most one record can be
returned by this subquery"
If I run the SELECT statement on its own I get a 20 row result.
Have I got the SQL wrong or is it a restriction in Access, please?
Ken Ellis
and 20 rows. I am trying to use this table to delete any rows in a table
called 'Target' with SerialNumbers that appear in 'Temp'. This is my
attempt:
DELETE *
FROM Target
WHERE Target.SerialNumber =
(SELECT SerialNumber
FROM Temp)
When I try to run the query I get the message:"At most one record can be
returned by this subquery"
If I run the SELECT statement on its own I get a 20 row result.
Have I got the SQL wrong or is it a restriction in Access, please?
Ken Ellis