From: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: sub-limiting a query |
Date: | 2007-02-17 17:47:43 |
Message-ID: | 20070217174743.GA30380@KanotixBox |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Louis-David Mitterrand <vindex+lists-pgsql-sql(at)apartia(dot)org> schrieb:
> ballet,etc.) and I am looking for a select that can return the 10 last
> entered shows AND at most 2 of each type. Is that possible in one query?
A similar question i found in the archive and there are a couple of
answers: (for the second part of your question)
http://archives.postgresql.org/pgsql-sql/2005-03/msg00408.php
But as i said, there is no plain sql-solution. Unfortunately we haven't
windowing functions, but perhaps in the future, Gavin Sharry is working
on this. Take a look at
http://www.gavinsherry.org/blog/index.php?/archives/7-Window-function-presentation.html
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
From | Date | Subject | |
---|---|---|---|
Next Message | M.P.Dankoor | 2007-02-17 18:21:40 | Re: sub-limiting a query |
Previous Message | M.P.Dankoor | 2007-02-17 17:35:09 | Re: sub-limiting a query |