SELECT person_no sub_sys_individual_id, nm_e, nm_a, nvl(sex, -1) sex, nvl(prs_nat, -999) prs_nat, person_no, \'NA\' prog_where_not_allowed, \'NA\' udb_no, person_tp,
The error is causing the BT, which is a reserved word. The solution is described in the Oracle Community forum.