I have a field in a SQL table that allows a max of 3 characters (string). For business reasons we only use up two characters. Every once in a while a user will make a typing error that puts 1 or 3 characters in that field. I'd like to be able to see when that condition exists with a query.
I don't have a mechanism to flag it on the front side so the user can correct it immediately.
My SQL is very rusty and I haven't been able to find anything through web searches or going through this site that does what I'm looking for.
Basic logic: if field_1 contains 2 characters, don't include in the results. If field_1 contains other than 2 characters, include in the results.
Just a simple select statement that will show that data. If anyone could help me with this, I'd greatly appreciate it. Thank you!
I don't have a mechanism to flag it on the front side so the user can correct it immediately.
My SQL is very rusty and I haven't been able to find anything through web searches or going through this site that does what I'm looking for.
Basic logic: if field_1 contains 2 characters, don't include in the results. If field_1 contains other than 2 characters, include in the results.
Just a simple select statement that will show that data. If anyone could help me with this, I'd greatly appreciate it. Thank you!