Re: Getting Duplicate records with Q query

2010-06-03 Thread Thomas Guettler
Hi Lee, search for "distinct", to filter duplicates. But I don't know why one returns no duplicates. HTH Lee Hinde wrote: > Hi; > > Goal is to get a list of notes that include all those created or > addressed to the current user, within the last few days. > > Model is a Note, with a created_by

Getting Duplicate records with Q query

2010-06-02 Thread Lee Hinde
Hi; Goal is to get a list of notes that include all those created or addressed to the current user, within the last few days. Model is a Note, with a created_by field and a many-to-many to a recipients table which is itself linked to a User Profile table which is linked to Users. Note <--Recipie