[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Multi condition sum [Correction]
From: Christoph Naber <dio2000@xxxxxxx>
Date: Fri, 12 Dec 2008 11:31:51 +0100
Hello,

Now I want to add all Quantity IF Status = "Available".

All sum is this: sum(books/book[@name="quantity"])
I think its
sum(books/book/column[@name = 'quantity'])
but how to add the Status = "Available" condition???
I think it should be
sum(books/book[column[@name = 'status'] = 'available']/column[@name = 'quantity'])




Christoph Naber

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member