Dani R Posted April 9, 2009 Posted April 9, 2009 in a table i have id number (serial) . how can i rub i script to get the biggest number (the last)? it is for a portal that i will have id 3,7,10,13,34 so i can get the number 34 . thank you all dani
mr_vodka Posted April 9, 2009 Posted April 9, 2009 See here http://fmforums.com/forum/showtopic.php?tid/202667/post/322478 You can also use Last ()
Dani R Posted April 10, 2009 Author Posted April 10, 2009 i did try what you suggest. i upload a image of the script . but i do not get the biggest number. why?
bcooney Posted April 10, 2009 Posted April 10, 2009 Dani, it seems that you are looking to capture the largest ID in a found set in the same table (not a child table). Just use a summary field that = Max (ID). No script necessary. Remember, though that summary fields are dependent on found set, but given your script, it seems that you are looking for the highest ID in a found set.
Dani R Posted April 10, 2009 Author Posted April 10, 2009 the table is a child table of history of a item . i need to find the biggest number for the history of the item.
Søren Dyhr Posted April 10, 2009 Posted April 10, 2009 Depending of the use obviously, would I consider an extra TO related similar but with the reverse sortorder of the creations, a GTRR would always land in that particular record if the cursor is taken away from a field in the portal ... Commit -> Gtrr does this, provided this utility relation is used instead! I have during the course of versions been dissuaded from extensive use of Last( ... but things might have changed? --sd
Recommended Posts
This topic is 5707 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now