/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SELECT id,name FROM products WHERE EXISTS ( SELECT version_id FROM versionships WHERE products.id = versionships.version_id );