5 messages in com.googlegroups.android-beginners[android-beginners] Re: How to get th...
FromSent OnAttachments
scorpio28 May 2008 06:01 
Mark Murphy28 May 2008 06:20 
scorpio28 May 2008 07:02 
Mark Murphy28 May 2008 07:18 
scorpio28 May 2008 09:14 
Subject:[android-beginners] Re: How to get the maximum value of an attribute in a table
From:Mark Murphy (mmur@commonsware.com)
Date:05/28/2008 06:20:50 AM
List:com.googlegroups.android-beginners

scorpio wrote:

Hi all,

how we can get the maximum value of an attribute in a table, in terminal , i checked and its working,

the query is -> select max(key) from Testing;

but how we can do this in Android.

Try SQLiteDatabase#rawQuery(), as documented on the Android site:

http://tinyurl.com/4r35qn