Ja, det kan du. Til dette skal du bruge JOIN og ORDER BY-sætningen.
Eksempel:
select t1.id, t2.product_id t2.price FROM table1 t1 JOIN table2 t2 ON t1.id = t2.pid ORDER BY t2.price
Ja, det kan du. Til dette skal du bruge JOIN og ORDER BY-sætningen.
Eksempel:
select t1.id, t2.product_id t2.price FROM table1 t1 JOIN table2 t2 ON t1.id = t2.pid ORDER BY t2.price