Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
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
Partner - Champion
Partner - Champion

it might depends from your database.

is the upper a valid keyword for your sql database ?

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 "