Imagine the following table:
-------------------------------------------------------------
ID | XML
-------------------------------------------------------------
1 | <Form><object ID="1" /></Form>
2 | <Form><object ID="2" /></Form>
3 | <Form><object ID="2" /></Form>
-------------------------------------------------------------
I need some SQL to find all rows where ID and Form/object@ID are not the same
I'm using SQL2000. ID is int field and XML is a Text field.
Also the data in the above table is simplified and there will be additional varying elements inside the form tag.
How do I do this? Can I do this?