Jump to content
Sign in to follow this  
katydid

xpath query group by

Recommended Posts

Hi, I've been able to manipulate an accessed xml file every way I've needed to, except to get a grouping on the xpath results. I'm looking for a way to query xpath and then have a way to "group by" the results similar to the sql query below ... I'm working in php btw.

 

SELECT * FROM table WHERE location = '$location' AND day >= '$todaydate' GROUP BY day

 

Is there an xpath query function or token that can provide a "group by"?

 

The xml file is provided to me, so I don't have access to preform xls on the original xml.

 

Thanks for your help.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...