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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Operator / operand type mismatch....

Hi,

I'm trying to the filter but somehow i get a script error. Please see syntax below

LOAD name,

         location,

         address;

   

SQL SELECT *

FROM XXX

WHERE trndat > '12/31/2011';

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Probably date format is wrong, try to use trndat > '20111231';

jvitantonio
Specialist III
Specialist III

Hi, just in case don't use * in your SQL statement.  Names in SQL statement will be loaded in upper case. Do this:

LOAD NAME as Name,

LOCATION as Location,

ADDRESS as Address;

SQL

SELECT Name, Location, Address from xxx where trndat > '12/31/2011';

If this is not the case, please state what error you are getting.

Anonymous
Not applicable
Author

Yes i have tried with that format,I'm extracting from Foxpro (.bdf) and "command is missing required clause" when i executed with the latter solution.

Anonymous
Not applicable
Author

Hi guys managed to filter using the year function instead and it worked just fine ;

WHERE YEAR(notdat) > 2011;