From: Robby Slaughter <webmaster@robbyslaughter.com>
To: rajesh <rajesh.prabhu@lycos.com>
To: pgsql-sql@postgresql.org
Subject: RE: "Display of specified number of records."
Date: Tue, 10 Jul 2001 21:51:40 -0500
Message-ID: <EPEHLKLEHAHLONFOKNHNEEKBDCAA.webmaster@robbyslaughter.com> (raw)
In-Reply-To: <f3522ac.0107060247.cad5295@posting.google.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: webmaster@robbyslaughter.com, rajesh.prabhu@lycos.com
Subject: RE: "Display of specified number of records."
In-Reply-To: <EPEHLKLEHAHLONFOKNHNEEKBDCAA.webmaster@robbyslaughter.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox