I'm new to crystal reports and I'm having problems with the syntax of the SQL Expression Editor. I using 3 tables. The main table(A) has most of the info that I want to display. Table(B) and Table(C) both have amounts I want to display on the detail line based on the unique id from Table(A). The extra twist is that in both Table(B) and Table(C) I have to display the amounts based on certain criteria from the tables. It seems like the SQL Editor is the way to go but I'm getting errors on the syntax.
Here's my code:
SELECT
TableA.`codnum`,
TableB.`number`,
TableB.`category`,
TableB.`amount`
FROM
`TableA` TableA,
`TableB` TableB
WHERE
TableA.`codnum` = TableB.`number`
AND TableB.`category` = "CA"
I'm using Crystal Reports 8.5 and it's a Foxpro database.
Thanks.
Here's my code:
SELECT
TableA.`codnum`,
TableB.`number`,
TableB.`category`,
TableB.`amount`
FROM
`TableA` TableA,
`TableB` TableB
WHERE
TableA.`codnum` = TableB.`number`
AND TableB.`category` = "CA"
I'm using Crystal Reports 8.5 and it's a Foxpro database.
Thanks.