Re: top predicate

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Karen Hill <karen_hill22(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: top predicate
Date: 2006-05-11 20:59:31
Message-ID: 4463A5B3.8090305@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Karen Hill wrote:
> It seems PostgreSQL doesn't have a TOP Predicate. Why is that? Here
> is an example:
>
> SELECT TOP 10 products from sales;

Just use:

SELECT product from sales limit 10

OR

SELECT products from sales order by products desc limit 10;

Joshua D. Drake

>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>

--

=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ben 2006-05-11 21:01:50 Re: top predicate
Previous Message Jan de Visser 2006-05-11 20:59:10 Re: top predicate