I have two tables, the table A contain many ids, which one is related to the table B. I have to make a query on the table A to select only some ids and then take the data fr