2
Good afternoon! I have the following question
My query is returning a single line, but I would need it to return two lines, where the first line would be the return of "B" and the other the return of "C"
Any idea how to solve?
select b.*,c.* from portal_sega_user a -- perfil
inner join portal_sega_user b -- secretaria secundaria
on b.USUARIO = a.SECRETARIAPRINCIPAL
inner join portal_sega_user c -- secretaria secundaria
on c.USUARIO = a.SECRETARIASECUNDARIA
where a.USUARIO = 'Willian'
Thank you.
This can help you: https://stackoverflow.com/questions/5641423/how-to-return-multiple-columns-of-the-same-row-in-t-sql-using-group-by ........
– Joao Vitor