如果我想选择“Value”属性等于t2.CookieID而不是@value参数的所有行,我应该如何更改以下查询?
SELECT (list of columns)
FROM dbo.MyTable t1
INNER JOIN dbo.MyTable t2 ON t1.ID = t2.ID
WHERE t2.[Description]
.exist('/Parent/Child/SpecialCode[@Value=sql:variable("@value")]') = 1