GROUP BY clause not working
- From: Lorenzo Thurman <lorenzo@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 02 Jun 2006 15:15:27 -0500
I'm using PHP 5 to make an ODBC connection to an MS Access database
using PEAR and I'm getting DB Error: Syntax Error when using the GROUP
BY clause. Here's my query:
SELECT * FROM HardwareInstallationsSummary WHERE LocationID = $loc_ID
GROUP BY EquipmentTypeID
Just for kicks, I changed the GROUP BY to ORDER BY. The query works, and
the items are sorted as expected, but this is not what I want. Is there
a bug in here somewhere?
TIA
.
- Follow-Ups:
- Re: GROUP BY clause not working
- From: Bent Stigsen
- Re: GROUP BY clause not working
- From: Janwillem Borleffs
- Re: GROUP BY clause not working
- Prev by Date: PluggedOut Blogging Script - New Version Available
- Next by Date: just installed XAMPP -- have one question...
- Previous by thread: PluggedOut Blogging Script - New Version Available
- Next by thread: Re: GROUP BY clause not working
- Index(es):
Relevant Pages
|