แท็กที่มีอยู่และแท็กที่ผ่านมาซึ่งมีสตริงที่กำหนด ไม่จำเป็นต้องใช้ตารางทั้งหมด
Existing and past tags containing the given string.It is not neccessary to use all the tables.
 PostHistory:  Id [ number]  PostHistoryTypeId [ number]  PostId [ number]  RevisionGUID [ other]  CreationDate [ time]  UserId [ number]  UserDisplayName [ text]  Comment [ text]  Text [ text]  ContentLicense [ text] 
WITH tagshistory_cte AS (SELECT Id AS phid, REPLACE(value, '>', '') AS TagName FROM PostHistory JOIN LATERAL STRING_SPLIT(Text, '<') WHERE PostHistoryTypeId IN (3, 6, 9) AND LENGTH(value) > 0) SELECT DISTINCT (th.tagname) FROM tagshistory_cte AS th WHERE th.tagname LIKE '%##text?divisble##%' ORDER BY th.tagname