1
have two tables.
Table "user" which has 5 lines and 5 users.
is the "location" table that has 20 records, using 5 Foreign key of user table ID
When I use this select I made
select u.nome from usuario u join locacao l on l.UsuarioId = u.id
it returns me the following values...
My doubt is, how do I make it return only one value each?
return like this.
- Pablo
- Wagner
- Grandson
- Lucas
- Alan
without repeating the same name several times?