sree
(sree)
September 9, 2005, 3:25am
1
Hi,
I have two tamino documets on containing fields userid,userdetails…
another document have fields userid and credit details . how i can join these two documents so that i can print both userdetails and credit details for a particular user.
regards sreeju
Curtis_Pew
(Curtis Pew)
September 9, 2005, 8:45pm
2
You want something like:
for $u in input()/user, $c in input()/credit
where $u/userid = $c/userid
return ...
sree
(sree)
September 12, 2005, 9:53pm
3
can you please make it clear.
how i can return username from first document and credit amount from second document
ie how will be the return statement looks like… i got confused… so please
regards sreeju
Curtis_Pew
(Curtis Pew)
September 13, 2005, 4:46am
4
It’s hard to say without knowing more about your schemas, but here’s something to get you started:
for $u in input()/user, $c in input()/credit
where $u/userid = $c/userid
return <my-result> { $u/userid, $c/credit-details } </my-result>