Adapted single failing SQL to coding standard