X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 8EBE89FA040 for ; Thu, 1 Jun 2006 15:38:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 51449-01 for ; Thu, 1 Jun 2006 15:38:07 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by postgresql.org (Postfix) with ESMTP id 6C5FF9FA5C8 for ; Thu, 1 Jun 2006 15:38:06 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so200202ugf for ; Thu, 01 Jun 2006 11:38:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; 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=GHF6Nx4UDV2k09kdSbIoTeegLmkAKKFlcejtxql8Hgff/S9lcSvvwMJkP6GJsjOPnbW7t0MClurrLjtwfmgYSj9PJgycTuV0jZWgPQhe3JKqTFMx2O3U43KPB4ixGxYoLJwlZZe6SHxgMuRJIzVXRjx77Ya9XkCVotD1O5/p5vw= Received: by 10.67.103.7 with SMTP id f7mr30245ugm; Thu, 01 Jun 2006 11:38:04 -0700 (PDT) Received: by 10.67.20.12 with HTTP; Thu, 1 Jun 2006 11:38:03 -0700 (PDT) Message-ID: Date: Thu, 1 Jun 2006 13:38:03 -0500 From: "Aaron Bono" To: "Yasir Malik" Subject: Re: Am I crazy or is this SQL not possible Cc: PostgreSQL In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 18acb1e41ed93a1f X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/46 X-Sequence-Number: 25282 > This reminds me of an interview question: I was asked how to get a > maximum column from a table without using max. How would you do that? > > Select my_column from my_table order by my_column desc limit 1 -- ================================================================== Aaron Bono President Aranya Software Technologies, Inc. http://www.aranya.com We take care of your technology needs. Phone: (816) 695-6071 ==================================================================