Works on sql