Re: Best database model for canvassing (and analysing) opinion

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Best database model for canvassing (and analysing) opinion
Date: 2009-08-18 12:24:52
Message-ID: 4A8A9D94.6070004@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sam Mason wrote:
> SELECT course, date, COUNT(*)
> FROM application_preferred_date
> GROUP BY course, date;
>
> Hope that gives you some ideas!
>

the problem as stated is more complex than that. A student could, in
theory, pick several different courses on the same dates on the
assumption that he doesn't care what course on which date. so if the
optimizer/solver has counted this student for course1 on date1, he can't
be counted for course2 on that same date, only on an alternate date he
may have also specified.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2009-08-18 12:35:49 Re: There are procedures in Postgres 8.3?
Previous Message Andre Lopes 2009-08-18 11:48:49 There are procedures in Postgres 8.3?