2

enter image description here

For the table above, how would I filter the column description so that it only shows English characters? (removes out the '????s' and the French characters etc)

I know it goes in the where clause, just can't figure out how.

Any help is greatly appreciated, thank you.

FelixSFD
  • 6,052
  • 10
  • 43
  • 117

2 Answers2

0

I tried a lot, but I couldn't find anything in your case.

But, if your column doesn't hold more than one Question Mark(?) consecutively, this will helps you:

DECLARE @A TABLE(Name VARCHAR(16))
INSERT INTO @A VALUES ('A')
INSERT INTO @A VALUES ('தமிழ்')

SELECT *
FROM @A 
WHERE name not like '%??%'

Output:

Name
A

If you found any other solutions, mention my name in the comment. That will helps me.

DineshDB
  • 5,998
  • 7
  • 33
  • 49
0

Try using NOT LIKE

SELECT *
FROM   Yourtable
WHERE  Description NOT LIKE '%[^a-Z]%' 
Pரதீப்
  • 91,748
  • 19
  • 131
  • 172