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

Members online

Forum statistics

Threads
473,998
Messages
2,570,242
Members
46,834
Latest member
vina0631

Latest Threads

Top