From oracle-l-bounce@freelists.org  Sat May 21 02:43:21 2005
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air891.startdedicated.com (root@localhost)
 by orafaq.com (8.12.10/8.12.10) with ESMTP id j4L7hJks005351
 for <oracle-l@orafaq.com>; Sat, 21 May 2005 02:43:19 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j4L7hF4Z005345
 for <oracle-l@orafaq.com>; Sat, 21 May 2005 02:43:15 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 27893194F8D;
 Sat, 21 May 2005 01:40:23 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 22546-02; Sat, 21 May 2005 01:40:23 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 9EBFC195356;
 Sat, 21 May 2005 01:40:22 -0500 (EST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=cYrIIXGAVeCC6MZ+aUINM+7jPqDwiuqWol3IMMs0j1z1KCLilZVSlIyRZqt101NcWvPd/XRggN2XNYHEcvaU9J1kSwck+Q6Otq+Bihrsyd+K/CS4bqA1Y5iMzeUkXbUfOq/0DuQeiulLju7adCdPsaxDdB+RXaTkYzfKOQikwo0=
Message-ID: <5e30486205052023382dda88e2@mail.gmail.com>
Date: Sat, 21 May 2005 14:38:35 +0800
From: Connor McDonald <mcdonald.connor@gmail.com>
To: oracle-l@freelists.org
Subject: Re: Select max(id) not returning correct value
In-Reply-To: <BEB31C97.279C6%tim@evdbt.com>
Mime-Version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
References: <20050520032247.69748.qmail@web52903.mail.yahoo.com>
	 <BEB31C97.279C6%tim@evdbt.com>
X-archive-position: 20071
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: mcdonald.connor@gmail.com
Precedence: normal
Reply-To: mcdonald.connor@gmail.com
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on 
 air891.startdedicated.com
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=ham version=2.63

Tim's post describes the most logical path to go down, if you exhaust
those options, try

select /*+ full(t) */ max(id) from mytable;

to rule out any index anomaly

hth
connor

On 5/20/05, Tim Gorman <tim@evdbt.com> wrote:
> Jacinta,
>=20
> What is the datatype of the ID column?  Is it NUMBER or a text datatype? =
 If
> not number, then what are your NLS settings?
>=20
> Please do a DESCRIBE of the table/view in question and also SHOW PARAMETE=
R
> NLS?
>=20
> -Tim
>=20
>=20
--=20
Connor McDonald
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
email: connor_mcdonald@yahoo.com
web:   http://www.oracledba.co.uk

"Semper in excremento, sole profundum qui variat"
--
http://www.freelists.org/webpage/oracle-l

