sql - ORA-00936: missing expression oracle -
i have query
select dal_rownotable.dal_id ( select ticket.id "dal_id", rownumber ( order ticket.id ) "dal_rownumber" ticket_table ticket ( ticket.type = n'i' ) , ( ticket.tenant null or ticket.tenant in ( select * ( select tenant_group_member.tenant_id tenant_group_member tenant_group_member.tenant_group = hextoraw('30b0716feb5f4e4bb82a7b7aa3a1a42c') order ticket.id ) ) ) ) dal_rownotable dal_rownotable.dal_rownumber between 1 , 21
what problem allow query throwing ora-00936 missing expression? anyone? appreciated...error thrown @ column:80 @ beginning of first order by:
your query can simplified. has things layers of subqueries , unnecessary order by
in in
subquery. want rownumber
can rownum
:
select dal_rownotable.dal_id (select ticket.id "dal_id" ticket_table ticket (ticket.type = n'i' ) , (ticket.tenant null or ticket.tenant in (select tgm.tenant_id tenant_group_member tgm tgm.tenant_group = hextoraw('30b0716feb5f4e4bb82a7b7aa3a1a42c') ) ) order ticket.id ) dal_rownotable rownum <= 21;
Comments
Post a Comment