Revised SQL statement.