Skip to content

Instantly share code, notes, and snippets.

@voronoipotato
Forked from thedanielmiller/badsql
Created May 4, 2012 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voronoipotato/2592001 to your computer and use it in GitHub Desktop.
Save voronoipotato/2592001 to your computer and use it in GitHub Desktop.
horrible sql
BEGIN
IF age < 7 AND clean = 'Poor' OR 'FAIR' THEN
UPDATE flight_info SET cleaning = 'Y';
ELSE
UPDATE flight_info SET cleaning = 'N';
END IF;
@thedanielmiller
Copy link

BEGIN
IF age < 7 AND clean = 'Poor' OR 'FAIR' THEN
UPDATE flight_info SET cleaning = 'Y';
ELSE
UPDATE flight_info SET cleaning = 'N';
END IF;
END

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment