I have the table "inventory_ticket" this has quantityTicket, and the table "inventory_list", what I want to do is a query that allows me to add the amounts of the two tables but according to the id that is set as fk_inventory in "inventoy_Ticket"
I tried this:
select (
(select sum(quantityTicket) from quantityTicket) +
(select sum(quantity) from inventory_list)
where fk_Inventory = 108
But I get the following error saying that my syntax is incorrect: