XQuery equivalent to NOT IN (subquery)

T

thecolour

Hello all

I am looking for the XQuery exquivalent to something like

select field from table1 where field not in (select field from table2)

I have been trying the != operator but it's not what I'm looking for.

Many thanks
Tom
 
M

Martin Honnen

thecolour said:
I am looking for the XQuery exquivalent to something like

select field from table1 where field not in (select field from table2)

/table1/field[not(. = /table2/field)]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top