How can I make a SELECT inside an INSERT operation?
insert into tableX (a_id, b_id) VALUES ((SELECT service_id FROM tableY WHERE id = 10, 2))
You're telling the DBMS that you're inserting two values (a_id, b_id) but only selecting one (service_id).