phpMyAdmin
 sql >> Datenbank >  >> Database Tools >> phpMyAdmin

SQL MIN-Funktion mit where-Klausel

SELECT p.name 
FROM Project p, Shipment s
WHERE s.JNo = p.JNo
  AND s.Qty in (SELECT MIN(qty) FROM shipment)