Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add condition in where clause of select query?

former_member873917
Discoverer
0 Kudos
297

How to add condition in where clause of select query? like

Select *

from table

where field1 = cond #( when flag = x then '111'

else '123')

into it_table.

2 REPLIES 2

Tomas_Buryanek
Active Contributor

Sandra_Rossi
Active Contributor
0 Kudos
210

Unclear question. What is FLAG? What is X? Variable? Column?

The answers depend on that.