problem with 'Group By' clause

  • Thread starter Thread starter piotr
  • Start date Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top