Slightly more standards-compliant SQL