0
I have the following scenario:
Table users
Table users
On the table usuariosacessos
, each line has the id
user, the name of the functionality, and a field stating whether or not it has access.
In my specific case, I need to bring only two features.
I tried it this way:
select u.codus, u.nome, ua.acessarForm from usuarios as u
inner join usuariosacessos as ua on u.codus = ua.codUsu
where u.login ='SS' and u.senha = '10' and ua.funcionalidade in ('frmTablet_Add', 'frmTablet_Remove');
but it returns me two lines (one for each functionality)
I would like to bring this data in just one line.
Is there any way to do that?
In case he’s doubling for the same
id
2funcionalidades
?– Marconi
No, there are two different records of the table users, one for frmTablet_Add and the other for frmTablet_Remove
– Thiago Luiz Domacoski