Thanks for every one for answers.

I could achieve my task as below.

PersistenceManager pm = PMF.get().getPersistenceManager();
Query q = pm.newQuery("SELECT item_no FROM " + ItemData.class.getName()
                    + " ORDER BY item_no DESC RANGE 0,1");


On Saturday, August 9, 2014 6:35:50 PM UTC+5:30, Bishan Buddhika wrote:
>
> I have a table in google app engine datastore as ItemDatwith columns as 
> below.
>
> item_no, letter, f_no, s_no, t_no
>
> I need to get the max value in item_no column.
>
> How can i achieve this ?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to