Skip to content

Instantly share code, notes, and snippets.

@thedanielmiller
Created May 3, 2012 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thedanielmiller/2589790 to your computer and use it in GitHub Desktop.
Save thedanielmiller/2589790 to your computer and use it in GitHub Desktop.
horrible sql
BEGIN
IF age < 7 AND clean = 'Poor' OR 'FAIR'
UPDATE flight_info SET cleaning = 'Y'
ELSE
UPDATE flight_info SET cleaning = 'N'
END CASE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment