SQL 121 🛢️ Querying Unstructured Data with XML and XPath
Relational databases have stored XML data for decades, but the mechanism for querying it is not SQL. XPath is a separate expression language with its own syntax, its own type system, and its own limitations. The SQL functions that expose XPath—PostgreSQL’s xpath() and xpath_exists(), Oracle’s XMLExists and XMLQuery, SQL Server’s xml methods—are bridges between two…