Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

inconsistent datatypes: expected DATE got NUMBER

User_5U3UIMay 6 2022 — edited May 6 2022

im using below query to update CU165_HR_APPR_LIMITS end_date_active field to fnd_user table end_date.
but im getting this error
SQL Error: ORA-00932: inconsistent datatypes: expected DATE got NUMBER
00932. 00000 - "inconsistent datatypes: expected %s got %s".

can someone provide me the solution for this.

UPDATE CU165_HR_APPR_LIMITS hral
SET end_date_active = (SELECT fu.user_id FROM fnd_user fu
where fu.user_id = HRAL.person_id
AND (fu.end_date <= SYSDATE OR fu.end_date IS NOT NULL));

This post has been answered by Solomon Yakobson on May 6 2022
Jump to Answer
Comments
Post Details
Added on May 6 2022
8 comments
13,510 views