When I tried as you suggested, the resultant SQL (from the SQL tab) was:
SELECT asset.accountno, asset.assetno, asset.productcode FROM asset asset WHERE ( asset.productcode IN ('(select','productcode','from','product','where','productcode','>','100)') )
As you can see, RB has put single quotes around each word of the subquery.
Which version of ReportBuilder are you using? In my testing with RB 10.09, RB detected that my value was a sub-query and adjusted its "in list" SQL formatting accordingly.
Comments
If your database allows subqueries, you can enter the subquery into the
Value edit box of the Search tab in the Query Designer.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
When I tried as you suggested, the resultant SQL (from the SQL tab) was:
SELECT asset.accountno, asset.assetno,
asset.productcode
FROM asset asset
WHERE
( asset.productcode IN
('(select','productcode','from','product','where','productcode','>','100)')
)
As you can see, RB has put single quotes around each word of the subquery.
Which version of ReportBuilder are you using? In my testing with RB 10.09,
RB detected that my value was a sub-query and adjusted its "in list" SQL
formatting accordingly.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com