0
Hello, I have in my bank a table tb_usuario (id INT, name VARCHAR, flag_active INT) and a table tb_regional(id INT, name VARCHAR,login VARCHAR, password VARCHAR). From the relationship between the two arises the table tb_regional_usuario(tb_regional_id INT, tb_usuario_id INT). Well, I would like to know how to mount a query that where I enter the user id and the bank returns me the regional ones for which it has access permission. Thank you in advance.
It helped a lot. Thanks for the return.
– Guilherme Ramalho