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: 
ruma_barman
Creator
Creator

Function in where clause doesn't work in sql

When we are trying to use upper function while retreiving data from database using the query  like Select * from Table_A where upper(Field)='COIN' shows error.What can be the reason?err.png

4 Replies
agigliotti
MVP
MVP

it might depends from your database.

is the upper a valid keyword for your sql database ?

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
Chanty4u
MVP
MVP

Hi,

it will happen sometimes

reconnect the database and re enter the credentails of your database and reload it will work

martinpohl
Partner - Master
Partner - Master

COEP is a SAP table.

SAP SQL is fussy in spaces at where statement.

where FIELD = 'COIN';

regards

MK9885
Master II
Master II

Maybe try below query, not sure if that would work?

Select * from Table_A where 'upper(Field)'=COIN"


You might need it to escape with the back ticks like "