Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Expression help

Status
Not open for further replies.

pleashelp

Technical User
Feb 27, 2002
97
US
I am using CR 8.5. Have the following sql statement that returns a row when I run it in Sql Query. But i get Sql errors when I try to put it into a SQL expression in CR.

select sum(iAmount) from voucher WHERE iDeviceID in(select iDeviceID from Devices WHERE strDeviceType ='CT')

wht am i doing wrong?
 
SQL Expressions aren't for executing subqueries.

They're for things like substring(), CASE, etc.

If you want to limit rows to those WHERE strDeviceType ='CT', you can edit the record selection formula to do so, or upgrade to CR 9, where you can use real SQL.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top