Re: query problem with Access database
- From: David Segall <david@xxxxxxxxxxxxxxx>
- Date: Wed, 28 Feb 2007 14:58:46 GMT
"HuskerGrad" <HuskerGrad@xxxxxxxxx> wrote:
Hi,DATE is a reserved word in SQL. Try changing the name of this column.
I am writing a Java application that uses an Access database. I have
the following query that has mulitple joins and a sum on one of the
fields:
Select a.date, b.name, sum(c.score) as total
from (table1 as a,
inner join table2 as b on a.person_id = b.id)
inner join table3 as c on a.game_id = c.id
group by a.date, b.name
If I run the query in Access, it works fine, but from within the Java
code, I get the SQLException "You tried to execute a query that does
not include the specified expression 'DATE' as part of an aggregate
function."
Any help would be greatly appreciated.
.
- Follow-Ups:
- Re: query problem with Access database
- From: HuskerGrad
- Re: query problem with Access database
- From: Sem
- Re: query problem with Access database
- References:
- query problem with Access database
- From: HuskerGrad
- query problem with Access database
- Prev by Date: Re: query problem with Access database
- Next by Date: Re: query problem with Access database
- Previous by thread: Re: query problem with Access database
- Next by thread: Re: query problem with Access database
- Index(es):
Relevant Pages
|