Re: Creating a custom sql query

2008-12-14 Thread Kottiyath Nair
Thank you, Karen. On Fri, Dec 12, 2008 at 7:42 PM, Karen Tracey wrote: > On Fri, Dec 12, 2008 at 4:32 AM, Kottiyath Nair wrote: > >> oops!! Unknowingly send the mail before finishing it. >> >> As I was mentioning in the earlier mail: >> What I want is: >>dbmodel.objects.filter(__first_filte

Re: Creating a custom sql query

2008-12-12 Thread Karen Tracey
On Fri, Dec 12, 2008 at 4:32 AM, Kottiyath Nair wrote: > oops!! Unknowingly send the mail before finishing it. > > As I was mentioning in the earlier mail: > What I want is: >dbmodel.objects.filter(__first_filter).sum(), should be able to sum > across the filtered data. > > If somebody could h

Re: Creating a custom sql query

2008-12-12 Thread Kottiyath Nair
oops!! Unknowingly send the mail before finishing it. As I was mentioning in the earlier mail: What I want is: dbmodel.objects.filter(__first_filter).sum(), should be able to sum across the filtered data. If somebody could help me out on this, I would be very thankful. P.S-> Also, is it safe

Creating a custom sql query

2008-12-12 Thread Kottiyath
Hi, I am sorry if this question was asked earlier. I searched in google, but couldnt find much help on this. I found that I have to create a custom sql query for aggregation of results. My question is - is it possible to integrate it with other filters? i.e. is it possible to get only