David Cramer said the following: > DISTINCT and GROUP BY are both annotating the results. Taking many rows, > and turning them into a single row based on a key. DISTINCT would be the > same as GROUP BY every, field, in, the, select.
But forcing people to group by every field they select in order to get distinct is absolutely idiotic, so why even suggest it? .distinct() maps to DISTINCT, and even if in some way its identical, there's no harm leaving it for the ease of use. -- Collin Grady "If you don't want your dog to have bad breath, do what I do: Pour a little Lavoris in the toilet." -- Comedian Jay Leno --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---