i have a query like this:
insert into book ('book_id', 'category_id', 'book_name', 'buy_price', 'sell_price') values ('B-001, 'BOM-001', 'Tarzan', 200, 300);
is it possible to get the category_id from another table which is category table using select and condition where category_name = 'adventure' so i get the BOM-001? can anyone give me a sample of that query ?
thank you