I want to build SQL command.
I have 2 tables,
the first one has :
songname - string
genre - int
The second has :
genre - int
genrename - string
I want to build a command that will do insert:
INSERT INTO Songs (songname,genre) VALUES (blablabla,*)
and instead of the * I want to take the value from the second table where genrename is equal to 3 for example.
1 Answer