Hello: I have a field colum whose type is varchar. How to find which row has the max length of character in this field column? Thanks, Snow
Hi, Louis Thanks for the help. I got maxchar: 500, but I would like to know which row has this max character field. How to do it? Thanks, Snow
Try something like: SELECT max(len(charfield)) as maxchar , (SELECT COUNT(*) FROM yourtable) AS rownumber from yourtable
Also try select * from yourtable where LEN(charfield)=(select max(LEN(charfield)) as maxchar from yourtable)