Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > xquery - function to get max timestamp

Reply
Thread Tools

xquery - function to get max timestamp

 
 
nlounello@gmail.com
Guest
Posts: n/a
 
      12-27-2007
How can I use the max function to get the record with the max
timestamp?

I'm thinking of using xmlexists but i'm having trouble knowing where
exactly to place it.

For example:
SELECT * FROM COMPANY
WHERE XMLEXISTS('$f//Company/Department/Employee@update_ts'
passing XML_COLUMN as "f")

<Company>
<Department>
<Employee startDate="mm/dd/yyyy"
update_ts="2007-11-01-17.59.40.285000">
<Name>John Doe</Name>
</Employee>
</Department>
</Company>

Thanks so much for your help!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
want max width and max height as long as not exceed 100px Summercool HTML 9 10-23-2007 02:27 AM
ADSL Max/Max Gordy NZ Computing 6 11-24-2006 11:41 PM
3Ds Max Plugins Collection, updated 25/Jan/2006, Autodesk Discreet 3ds Max v8.0, 3dsmax Unplugged 2005, 3DSMAX V7, and DESPONA 10 CDS, code_fu@pathfinder.gr Digital Photography 0 02-02-2006 06:52 AM
Textarea max rows and max characters per row Greg Ferris Javascript 2 01-16-2004 07:21 PM
Max Apperture and Max. Shutter Speed Confusion-HELP bhaskar Digital Photography 12 07-22-2003 05:17 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57