I have 2 tables: publications and books.
Currently, the table publications is empty.
I need to select all the books in the 'books' table with volume "26" and insert it in the publications table. I should also populate the column publications.component with 'thesorus'
I tried the sql below but it does not seem correct:
INSERT INTO publications (book_fk, component) VALUES (SELECT book_id FROM books WHERE volume = 26, "thesorus"); Any suggestion is most appreciated