sql >> Database >  >> RDS >> Mysql

MySQL echt aparte join

Gebruik gewoon het onderstaande:

SELECT DISTINCT subscriber.*
FROM subscriber
LEFT OUTER JOIN purchase
ON (subscriber.email = purchase.email and purchase.product_id = 1)
WHERE purchase.product_id IS NULL


  1. Meerdere identieke entiteitsrelatie

  2. Zoekopdrachtoptimalisatie:max() in subquery

  3. INFORMATION_SCHEMA versus sysobjects

  4. Hoe wijzig ik mijn bestaande tabel om een ​​bereikpartitie in Oracle te maken?