I've got a table views with a column containing XML documents (stored as text). Here's a simplified version:
<?xml version="1.0"?>
<view>
<image>
<sequence>
<param name="scan">129</param>
</sequence>
</image>
<image>
<sequence>
<param name="scan">1</param>
</sequence>
</image>
[...]
</view>
Another table contains the scans referenced in the XML. If refactoring into a new table is impractical at the moment, how do I connect the two tables in an SQL query?