Using regex and like
Approach\nRegex to exclude intermediate similar strings\n\n\n# Code\n\nselect \n        * \nfrom Patients \nwhere conditions like \'%[^A-Z]DIAB1%\' or\n conditi
# Approach\nRegex to exclude intermediate similar strings\n\n\n# Code\n```\nselect \n        * \nfrom Patients \nwhere conditions like \'%[^A-Z]DIAB1%\' or\n conditions like \'DIAB1%\'\n```
['MS SQL Server']