I have a direct SQL query to pull some specific item from the DB. Can get the ItemID and Field name I am interested in... but I want to give my editors the path to the item instead of making them search for the item ID. How can I get this path with a SQL query? For the record, here is my current query:
SELECT ItemId, Language, Value, I.Name FROM Fields F
JOIN Items I ON F.FieldId = I.ID
WHERE Value LIKE '%style="color: #999999%'
ORDER BY Language, ItemID
I had some translators incorrectly copy-and-paste HTML inside Content Editor and these superfluous style tags came along for the ride in many places. I would like to get a full list of Items (with content tree path) that are affected. DB Schema is Sitecore 6.6.