i have XML data stored in a text column in MySQL table, i want to fetch the child notes with a select query but not getting any results back.
data in the table
<Attributes>
<Map>
<entry key="accessRequired" value="Yes"/>
<entry key="company" value="0001"/>
<entry key="companyName" value="ABC Inc"/>
<entry key="contractorEndDate" value="11/15/2020"/>
<entry key="contractorStartDate" value="10/10/2019"/>
<entry key="costCenter" value="1234"/>
<entry key="costCenterName" value="design & develop"/>
<entry key="country" value="US"/>
<entry key="departmentAdminEmail" value="testadmin@abc.com"/>
<value>
<Map>
<entry key="Rule" value="123456hgfjuykuiykui"/>
</Map>
</value>
</entry>
</Map>
</Attributes>
Query i am using to read the data
select display_name, SUBSTRING_INDEX(ExtractValue(attributes,'/attributes/map/departmentAdminEmail'),' ',1) from table1 where display_name like 'John%';
wanted to list the email address field only, can you guys help me out with the query.