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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
george55
Partner - Creator III
Partner - Creator III

JOIN and WHERE

Don't understand why can not run this JOIN. Error-Message: C_StartTimeStamp could not be fine. Even if I try with 'XX'. 

And second question. Is this the common way to put a WHERE-Statement by doing it with a if above from Resident/FROM?

DAYINFO:
Load
C_StartTimeStamp as XX
Resident CALL;

LEFT JOIN (DAYINFO)
Load
If(F_StartTime >= C_StartTimeStamp AND F_EndTime <= C_StartTimeStamp, 1, 0)
Resident FEATURE;

Labels (1)
3 Replies
JustinDallas
Specialist III
Specialist III

Does the table named FEATURE have a field called C_StartTimeStamp?

george55
Partner - Creator III
Partner - Creator III
Author

No, FEATURE does not have  C_StartTimeStamp. Is that necessary?

CAL_StartTime is included in Table TAGESINFO. The WHERE-clause should use CAL_StartTime from Table TAGESINFO and not from Table FEATURE.

JustinDallas
Specialist III
Specialist III

I would think it would be necessary because you are referencing it in your IF statement.

 

 

Load
If(F_StartTime >= C_StartTimeStamp  AND F_EndTime <= C_StartTimeStamp, 1, 0)
Resident  FEATURE ;