cguyreports
Technical User
I am in need of assistance to create an efficient way of grouping states.
I have a table with over 2 million records and need to show a count by state. However the state field is not always consistent. The data type is varchar 15 and I have data ranging for the standard two char abbreviations to the state being spelled out or just plain junk with no meaning. I have thought about creating a case statement or a lookup table but was hoping of a more efficient manner to handle the data problems.
Any words of insight would be very helpful. Thanks in advance for your time!
I have a table with over 2 million records and need to show a count by state. However the state field is not always consistent. The data type is varchar 15 and I have data ranging for the standard two char abbreviations to the state being spelled out or just plain junk with no meaning. I have thought about creating a case statement or a lookup table but was hoping of a more efficient manner to handle the data problems.
Any words of insight would be very helpful. Thanks in advance for your time!