I have a question, I want to know if it is possible to consult a data of a table and compare it with another data of another table, I mean, I have a table table which has its id, and another table which has as FK the id of the table of the previous table, my query is, can you perform the following query ?:
SELECT Id FROM mesa WHERE Id = pedido.Id_mesa
If possible please correct me if the query is wrong, I would appreciate it very much.
Greetings!.