The current error I am getting is "Invalid column name 'coursecost'", where coursecost is the calculated column from my sql.
The sql I am using to retrieve the data is given below:
SELECT courses.numdays,calendarevents.totalrevenue, courses.numdays * calendarevents.totalrevenue AS coursecost
FROM
calendarevents INNER JOIN courses ON calendarevents.courseid = courses.courseid INNER JOIN coursecat ON courses.coursecatid = coursecat.coursecatid
COMPUTE SUM(numdays), SUM(totalrevenue), SUM(coursecost)
It could very likely be a syntax issue with the sql statement above. Can you see anything wrong it? Let me know what you think.
Thanks,
CE