Given an XML document, write a SQL query to find all the nodes with a given attribute value.
The candidate's solution is complete and solves the problem. The candidate's approach is to use the XMLTABLE function to parse the XML document and return a table of values. The XMLTABLE function takes an XML document and a path expression as arguments. The path expression is used to extract the desired nodes from the XML document. The XMLTABLE function returns a table with a column for each node in the path expression. The XMLTABLE function is used in the FROM clause of the SQL query. The WHERE clause is used to filter the results to only include rows where the value of the attribute is equal to the desired value.
Evaluated at: 2022-11-27 12:15:57