From: Aaron Bono <aaron.bono@aranya.com>
To: Yasir Malik <ymalik@cs.stevens.edu>
Cc: PostgreSQL <pgsql-sql@postgresql.org>
Subject: Re: Am I crazy or is this SQL not possible
Date: Thu, 1 Jun 2006 13:38:03 -0500
Message-ID: <bf05e51c0606011138t30bc43e2n79747115401de29d@mail.gmail.com> (raw)
In-Reply-To: <Pine.NEB.4.64.0606011409360.758@pink-elephant.cs.stevens-tech.edu>
References: <df01c91b0606011043g61328d6habaee8fa037a5ccf@mail.gmail.com>
<Pine.NEB.4.64.0606011409360.758@pink-elephant.cs.stevens-tech.edu>
> 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
==================================================================
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: aaron.bono@aranya.com, ymalik@cs.stevens.edu
Subject: Re: Am I crazy or is this SQL not possible
In-Reply-To: <bf05e51c0606011138t30bc43e2n79747115401de29d@mail.gmail.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