Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
#Automation
Does Tamino 4.1.1.1 support “distinct-values” function? As I know, I don’t support it yet. Well I want to know if there is any plan to support it. Without it, I can not group xml data on Tamino.
Hello,the function distinct-values is currently not available in Tamino XQuery 4.It is high on the priority list for the next version.Under certain circumstances a workaround may be used with a self join like this:declare namespace tf = “http://namespaces.softwareag.com/tamino/TaminoFunction”for $b in input()/bib/bookwhere tf:getInoId(root($b)) eqmin(for $c in input()/bib/bookwhere $b/@year eq $c/@yearreturn tf:getInoId(root($c)))return $bBut be aware that such a complex construction is currently not optimized at all.Best regardsWalter