Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 2AE5E9F9E8C for ; Thu, 13 Sep 2007 12:17:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 36089-08 for ; Thu, 13 Sep 2007 12:17:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by postgresql.org (Postfix) with ESMTP id 44E319F99DC for ; Thu, 13 Sep 2007 12:17:16 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id f5so458482nfh for ; Thu, 13 Sep 2007 08:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=cTrRKVBTMFUSjPwqzMns3Kpwdb9OnVpQ4z5HFHWQpSs=; b=qwS8Nhev+gY3KKmdAbxZomwrX4uWEaeifWWw91FKA0iyHWfOGM/DLS5+ZDb5jYfDzvqBb5j1zyz3ey1HzrCL951/Pr4Rw3jqgd6FGGq5y8JpyGUqGZ56V+YzbPxMNfstL2Cxhn0Ht1RfKcEsxvbAbzkmQvBcIJM0IIGEGZ5RdWg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=Hdb0VnStdmi4rKSsdGJK7Yyc1t0AYcAzDYLU7MkEbsf7u1s+URypwExxbb2ERCNCoxUTlJshwQwWShe8VbiVuwBCL1dPezz8O7j/giGhk819QtF1KLdO1egpZTl097CB1/UcP8pvudyr5NBq6plKw9zgYPamxNIUmlLGFDEszA8= Received: by 10.78.160.2 with SMTP id i2mr435635hue.1189696633555; Thu, 13 Sep 2007 08:17:13 -0700 (PDT) Received: by 10.78.145.8 with HTTP; Thu, 13 Sep 2007 08:17:13 -0700 (PDT) Message-ID: <88daf38c0709130817se4a12d8gafd507061e000ca5@mail.gmail.com> Date: Thu, 13 Sep 2007 17:17:13 +0200 From: "Alexander Staubo" To: "volunteer@spatiallink.org" Subject: Re: query help Cc: pgsql-general@postgresql.org In-Reply-To: <20070913080635.b22b5ede89d48a4249261b5ab56693f4.f8f6ec4eb6.wbe@email.secureserver.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070913080635.b22b5ede89d48a4249261b5ab56693f4.f8f6ec4eb6.wbe@email.secureserver.net> X-Google-Sender-Auth: 996d9129a8f31b06 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/651 X-Sequence-Number: 120574 On 9/13/07, volunteer@spatiallink.org wrote: > hello > > table is > +-------+-------+------+-------+ > | id | one | two | three | > +-------+-------+------+-------+ > | first | Jack | Jill | Mary | > | last | Ja | Ji | Ma | > +-------+-------+------+-------+ > > result is > +----+-------+-------+ > | id | one | two | > +----+-------+-------+ > | first | Jack | Jill | > | last | Ja | Ji | > +----+-------+-------+ > > query is?? Unless I am missing something crucial, this is SQL 101: select id, one, two from foo; Alexander.