The following query is support to sort the state out in order, but I guess I must have been missing something. Can someone explain why this is not working and what I can do to resolve this.
thanks
--trying to sort them out in alpha
select isnull(clmstate,''),count(isnull(clmstate,'')) from claims
Where clmstate NOT IN ('','NO') group by clmstate order by clmstate
union all
--if not in the state add them in bottom of the rows
select isnull(clmstate,''),count(isnull(clmstate,'')) from claims
Where clmstate IN ('','NO') group by clmstate order by clmstate
thanks
--trying to sort them out in alpha
select isnull(clmstate,''),count(isnull(clmstate,'')) from claims
Where clmstate NOT IN ('','NO') group by clmstate order by clmstate
union all
--if not in the state add them in bottom of the rows
select isnull(clmstate,''),count(isnull(clmstate,'')) from claims
Where clmstate IN ('','NO') group by clmstate order by clmstate