Replace comparison to scalar subquery by inner join or left/right join
问题 I need to write this query using inner joins or right/left joins but I don't know how to start: select * from radicados where asignado = (select estudianteid from estudiantes where usuario = (select usuarioid from usuarios where nombre = $nombre_usuario)) But I don't know how to do the same with joins. I think this must be something like: select * from radicados inner join usuarios on usuarioid=usuario 回答1: It appears you want something like this: select radicados.* from radicados join