Common SQL incompatibilities and resolutions