How many different status codes of things are there?
create table timed_status_of_things (status_of_thing_code varchar, PRIMARY KEY (status_of_thing_code))
select count(distinct status_of_thing_code) from timed_status_of_things