Skip to content

Tag: sql

Get last row per group in SQL

I have the data below, and i want to get the last row per desc the result should be like this: how can i do it in SQL, please note that database is oracle. Answer You can get the expected result with the following query:

Delete xml node with a specific CDATA

This is part of my XML: I need to delete the EO node with <![CDATA[0001FFFFFFFF]]>,across the table using Oracle. This xml is stored in XM_DATA_CACHE of XMLTYPE. Is there a way to delete based on CDATA Final output should be Answer First of all your xml is broken: second tag GoalMeasurementEORow is not …