Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 1930 invoked from network); 29 May 2008 04:28:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 May 2008 04:28:26 -0000 Received: (qmail 93008 invoked by uid 500); 29 May 2008 04:28:26 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 92986 invoked by uid 500); 29 May 2008 04:28:26 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 92975 invoked by uid 99); 29 May 2008 04:28:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 21:28:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rjcarr@gmail.com designates 209.85.146.178 as permitted sender) Received: from [209.85.146.178] (HELO wa-out-1112.google.com) (209.85.146.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 May 2008 04:27:38 +0000 Received: by wa-out-1112.google.com with SMTP id n4so3509058wag.5 for ; Wed, 28 May 2008 21:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=l9wrIQ8HGnEYJ33ysnh+HLg8ycmNIaE30IgYxcusoXs=; b=BULKc7V2/LCvInIX63Hu1H51SnzmxeOeynmHGAEzkbTDXE9qpZMlPhu7w8sFsfhF+fs1m8jYd7hDCSRDWRao+bsYF/aZGD415HBh9I8zb4zNWg4IuHCJXeEVdk+FP234EJT1DWtjbzIcNuCbDq5crIVYmgSp1EoSNODH1uoWFOQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N+8Up7a4ubNPcoubkelubN17FPS3HOZCVPEAnat829Fi/ojU3Uym0xFBnjnlUz/P7dMo/OPQu1AmVkfbZ8i+OJWxhodl+APR6V0yo87U6Km+iH6pUUqbKNi5VVBPrvfj8R+cblmpjLGC7QmUg69cO5FQIAkPkL8efg/GeoiLD4M= Received: by 10.114.196.13 with SMTP id t13mr3715113waf.219.1212035274549; Wed, 28 May 2008 21:27:54 -0700 (PDT) Received: by 10.115.14.19 with HTTP; Wed, 28 May 2008 21:27:54 -0700 (PDT) Message-ID: Date: Wed, 28 May 2008 21:27:54 -0700 From: "Robert J. Carr" To: "Derby Discussion" Subject: Re: Select Alpha Rows In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Just a guess ( assuming [A,C) ): select * from table where (name >= 'A' and name < 'C') or (name >= 'D' and name < 'G') On Wed, May 28, 2008 at 9:20 PM, Kai Ponte wrote: > I have a table, which is a list of names and other information about people > > I want to select only those names that - say - are between A and C, then > select D through G, and so on. > > I can't seem to figure out how to do this. > > Do I need to setup a View that sorts all names and select between them? > > > -- > kai > www.filesite.org || www.4thedadz.com || www.perfectreign.com > remember - a turn signal is a statement, not a request >