I have two tables.
"User" table that has 5 rows and 5 users.
andthe"lease" table that has 20 records, using 5 foreign key ID of the user table
WhenIusethisselectIdid
selectu.nomefromusuarioujoinlocacaolonl.UsuarioId=u.id
Itreturnsmethefollowingvalues...
My question is, how do I return only one value of each?
return like this.
- Paul
- Wagner
- Neto
- Luke
- Alan
Without repeating the same name several times?