[xquery-talk] my question again

David Carlisle davidc at nag.co.uk
Thu Mar 16 14:34:07 PST 2006


> dear all
> i forwarded this email, i just need to know , is it
> possible to do that, if not please reply with no

It's hard to know what your question means as it involves syntax that
isn't Xquery and so its hard to say how to convert it to xquery without
some description in text as to what you wish to calculate.


> Let &j= <bookstore>

I assume this is intended to be
let $j := <bookstore>
^   ^
    
> let $whrcnd = Book/author/lastname= bob and
> book/price=55

I assume that that is intended to be

let $whrcnd := book/author/lastname= "bob" and book/price=55
            ^  ^                     ^   ^

> I need to select count(*) from $j where $whrcnd
> Group by <records of book>

Sorry, I couldn't guess what this was intended to do.


> The result is 2

count($j/book[author/lastname= "bob" and price=55])

is 2 but I'm not sure if that's the query that you need.

David


More information about the talk mailing list