I have two tables: Artist and Work.
Artist is a relation of painters with ArtistID, FirstName and LastName.
Work is a relation of their paintings with columns WorkID, Title and ArtistID.
Now, my artist relation has data and I am now inserting values to Work table. WorkID is a counter, so no problems there. I want to use something that does
INSERT INTO Work (Title, ArtistID)
VALUES('Toledo', SELECT ArtistID FROM Artist WHERE FirstName='Joan');
But it doesn't seem to work or accept the Select Statement as a part of insert. What should I do?