| From: | "Robby Slaughter" <webmaster(at)robbyslaughter(dot)com> |
|---|---|
| To: | "rajesh" <rajesh(dot)prabhu(at)lycos(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
| Subject: | RE: "Display of specified number of records." |
| Date: | 2001-07-11 02:51:40 |
| Message-ID: | EPEHLKLEHAHLONFOKNHNEEKBDCAA.webmaster@robbyslaughter.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
You want to just display records WHERE the field is BETWEEN
10 and 50?
SELECT * FROM test WHERE testID BETWEEN 10 AND 50;
If you want them to be ordered by the testID, just include a ORDER BY
testID;
See, isn't SQL a friendly language? :-)
-Robby
Hi,
I have got following simple SQL.
Select TestID from test where testname = ' ' order by testdate.
Suppose for argument sake there are 100 records and testID's are 1
to 100.
Is it possible to modify this SQL so that it will display records
from 10 to 50 and not any other records.
Rajesh.
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mathew White | 2001-07-11 04:39:01 | Re: SQL - histogram |
| Previous Message | Robby Slaughter | 2001-07-11 02:51:39 | RE: SQL question |