[xquery-talk] condition of count

Michael Kay mhk at mhk.me.uk
Fri Jun 16 10:42:32 PDT 2006


You can do count($cnd1 intersect $cnd2)

Michael Kay 

> -----Original Message-----
> From: talk-bounces at xquery.com 
> [mailto:talk-bounces at xquery.com] On Behalf Of fatma helmy
> Sent: 16 June 2006 01:40
> To: talk at xquery.com
> Subject: [xquery-talk] condition of count
> 
> i need to do the following using xquery:-
> 
> let $cnd1:= $j/bookstore//book//year [text()=1998] let 
> $cnd2:= $j/bookstore//book//pub [text()="academy"] i need to 
> return the count of books that satisfy both
> cnd1 and cnd2 knowing that cnd1 and cnd2 can be supplied by 
> the user from an external interface 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection 
> around http://mail.yahoo.com 
> _______________________________________________
> talk at xquery.com
> http://xquery.com/mailman/listinfo/talk



More information about the talk mailing list