gettingstarted
[Top] [All Lists]

Re: Max values in db

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Max values in db
From: Will Leshner <leshner at ljug dot com>
Date: Wed, 29 Sep 2004 10:52:00 -0700
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <FAE9B42D-123F-11D9-A70D-00039367EE0E at sasktel dot net>
Ron Lambert wrote:

Is there a way to find the max value of a field set? I have been considering the SQL(...) method, but I cannot come up with a wording.

If your SQL engine supports the max() function, you can just use that:

SELECT max(column_name) FROM table_name;

--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzLog & KidzMail: http://haranbanjo.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>