Im trying to calculate the difference between two columns. The statement im using is:
Select course_name, sum(no_players-players_booked) as no from TEE_TIMES
When I try this statement I get the error message:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E14)
Column 'tee_times_for_sale.ID' is invalid in the select list because it is not contained in an aggregate function and there is no GROUP BY clause.
/golf/csadmin/no.asp, line 14
How can I accomplish this?
Thanks for any help
Select course_name, sum(no_players-players_booked) as no from TEE_TIMES
When I try this statement I get the error message:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E14)
Column 'tee_times_for_sale.ID' is invalid in the select list because it is not contained in an aggregate function and there is no GROUP BY clause.
/golf/csadmin/no.asp, line 14
How can I accomplish this?
Thanks for any help