Ja, das geht – dafür müssen Sie JOIN und die ORDER BY-Klausel verwenden.
Beispiel:
select t1.id, t2.product_id t2.price FROM table1 t1 JOIN table2 t2 ON t1.id = t2.pid ORDER BY t2.price
Ja, das geht – dafür müssen Sie JOIN und die ORDER BY-Klausel verwenden.
Beispiel:
select t1.id, t2.product_id t2.price FROM table1 t1 JOIN table2 t2 ON t1.id = t2.pid ORDER BY t2.price