79501019

Date: 2025-03-11 14:10:10
Score: 0.5
Natty:
Report link

I prefer to write something like below:

EXISTS avoids creating a potentially large result set in memory and is often more efficient.

SELECT a.*
FROM TableA a
WHERE EXISTS (
    SELECT 1
    FROM TermsTable t
    WHERE a.Description LIKE '%' + t.Terms + '%'
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kamran Khalid