condition basis where clause [message #623347] |
Tue, 09 September 2014 02:45 |
simplesanju
Messages: 36 Registered: July 2008
|
Member |
|
|
Hi all,
my requirement to fetch data on few conditional filters like
Table structure
table name:test
column1 column2 column3
1) select * from test where column1=:p1
if record count is zero of first query, then it should show output of below query
2) select * from test where column2=:p2
if record count is zero of 2nd query also, then it should show output of below query
2) select * from test where column3=:p3
I want to merge three query into one.
Thanks
Sanjana
|
|
|
|
|