sql >> Base de Datos >  >> RDS >> Mysql

Consultas Mysql - usando join/union, etc.

Prueba esto:

select p1.*,p2.total,p2.paid,p3.hotel from customers p1 
inner join payments p2 on p1.uid=p2.uid 
inner join projects p3 on p1.pid=p3.pid