Skip to content

Instantly share code, notes, and snippets.

@rightfold
Forked from arianvp/gist:9116037
Last active August 29, 2015 13:56
Show Gist options
  • Save rightfold/9116363 to your computer and use it in GitHub Desktop.
Save rightfold/9116363 to your computer and use it in GitHub Desktop.
SELECT D.id, D.name
FROM Driver AS D
, Route AS R
JOIN Schedule AS S
ON S.driverID <> D.id
AND S.routeID <> R.id
WHERE R.numberOfStops <= 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment