Access db jet sql if else in query -


i using microsoft access jet sql.

i have table col1 , col2

i want have if else check in select query follows

select col1, if(col2 <10) 'less 10' else if(col2 < =20) 'less 20')

any quick help

iif([col2]<10, "less 10", iif([col2]<=20, "less then20", "something else")) 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -