Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Wie schreibe ich diese Self-Join-Abfrage in MySQL?

SELECT pp.products_id
    FROM products p
        INNER JOIN products pp
            ON p.model_num = pp.master_model_num
    WHERE p.products_id = '1'