Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Abc11
Contributor
Contributor

SQL Error :Message=ORA-00932: inconsistent datatypes: expected NUMBER got Date

Hi to All,

Below is my Query.getting error message: expected NUMBER got Date

DATEADD function is not available in my SQL. Please, help me

With My_CTE as
(select laborcode,workdate,
(DENSE_RANK() OVER (PARTITION BY LABORCODE ORDER BY WORKDATE ASC)-workdate) col1
from bi_hz_etl.lem_facts_v )

select count(*) CNT, min(workdate), max(workdate) from My_CTE Group by Col1

Thanks

Labels (1)
1 Reply
Abc11
Contributor
Contributor
Author

Solved by this

(workdate-DENSE_RANK() OVER (PARTITION BY laborcode order BY workdate ASC))