|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] group by and havingMartin Probst martin at x-hive.comFri Aug 4 12:39:37 PDT 2006
Hi, you usually do something like this: SELECT country, avg(salary) FROM bla GROUP BY country translates to something like this: for $country in distinct-values(//country) let $emp_per_country := //employee[country = $country] return ($country, avg($emp_per_country/salary) HTH, Martin Am 03.08.2006 um 23:09 schrieb fatma helmy: > how to write in xquery the statements equavelnet to group by , > having from sql? > _______________________________________________ > http://xquery.com/mailman/listinfo/talk > http://xquery.com/mailman/listinfo/talk >
|
Purchase Stylus Studio Online Today!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






