where clause for parameter with blank value [message #183543] |
Tue, 08 August 2006 18:11  |
Eclipse User |
|
|
|
Originally posted by: reshmabhat.yahoo.com
hi,
i have a query which is like this
select table1.col1, table5.col3, sum(table3.col2)
from table1, table2, table3,..., table12
where table1.col1=table2.col3 and table2.col4=table3.col2... and so
on(just natural joins)
group by table.col1, table5.col3
i have a input parameter(have defined it as text filed) which shd go in
where clause of the above query.
this parameter say, param1(to be binded to table5.col3) can take a value
55101 or be empty in that case, i need to have all the rows of table5.col3
as the values for param1 in my "where table5.col3 = ?"
my where clause has table5.col3 = ? along with above mentioned joins.
how to write my query as well as define default value for param1/default
value for corresponding parameter defined for dataset so that i can get
this done?
i use webviewerexample application to run my reports. i just call my
test.rptdegign, dont pass any parameters...
thanx in advance.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06261 seconds