Removed semicolon from SQL query as it is problematic for Oracle