I have DB2 table having following structure
CREATE TABLE DUMMY
(
ID CHARACTER(10) NOT NULL,
RECORD XML NOT NULL
)
I want to use XQUERY to select data in RECORD column on the basis of ID. and do some XQUERY operations on the data present in RECORD column.
eg: I want to select RECORD having ID 1.
You can use the
db2-fn:sqlqueryfunction to do this. See the documentation.