Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The XMLQuery syntax problem

 
Sindhu Kodoor
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a DB2 table , say for example the table name "Customer" , it has a column XML_DATA that has the entire xml loaded into each row, I need to write a select XMLQUERY, to extract all the customers with customer Id="ALL", for that
the query I wrote is :



But instead of filtering by customerId=ALL, it is returning all the records in Customer table, please kindly help me out.

Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic