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

Ayuda con agarre (¿INTERIOR?) ÚNETE

SELECT url, second.rel_id AS user_id
FROM table1
INNER JOIN table2 AS first
  ON table1.id=first.rel_id
INNER JOIN table2 AS second
  ON first.item_id=second.rel_id
WHERE second.field_id='42'
  AND table1.url LIKE '%/:downloadfile'