problem with 'Group By' clause

P

piotr

Hi,

When I execute a query:

"SELECT id, name, date FROM table GROUP BY name, date;"

This creates error :
"You tried to execute a query that doesn't include the specified expression
'id' as part of an aggregate function"

The point is I want to show 'id' field without including it in GROUP BY
clause ( I want to find records with the same 'name' and 'date' fields and
to show their 'id')
What query should I use?

Regards
Piotr
 
Top