I attempting to create a SQL Statement within Crystal Reports 8.5. I visited a number of forums, reviewed the Crystal Knowledge Base website, and have been unable to create a successful query within Crystal Reports. I have been able to run numerous successful queries within USQL, through which we are using to connect to the database, but I have not been able to duplicate this success within Crystal. Below is a copy of the select statement which I am attempting to use within Crystal, which is actually a copy of the SQL Query which Crystal Builds that can be viewed when you select: Database>Show Crystal Query. I copied the following select statement into the SQL Expression Field within the Formula Editor just to see how Crystal would handle the syntax, thinking that; “If Crystal builds it, perhaps it would understand the syntax within the Formula Editor”. Following the select statement is the error message I am receiving. I have no idea what Crystal wants in terms of Syntax, and I am lost as how to find out. Any suggestions would be appreciated. Thanks.
SELECT
SL_RECORD.SL_FUND
FROM
kdd.SL_RECORD SL_RECORD
WHERE
SL_RECORD.SL_SUB_OBJ_CLS = SI_ACCT_RECORD.SI_ACCT_ACCT
error message:
ODBC error:[Transoft][tsodbc][usqlsd]’FROM’ expected here(,)
Ken
SELECT
SL_RECORD.SL_FUND
FROM
kdd.SL_RECORD SL_RECORD
WHERE
SL_RECORD.SL_SUB_OBJ_CLS = SI_ACCT_RECORD.SI_ACCT_ACCT
error message:
ODBC error:[Transoft][tsodbc][usqlsd]’FROM’ expected here(,)
Ken