Hi,
Unfortunately, I have a field in a database that is labeled state_province. It contains state abbreviations such as NY for New York. It also contains Provinces like Alberta.
How can you arrange that data when i select it?
I'd like to have all the US states at the top of my list in alphabetical order and have the provinces at the end of my list in alphabetical order.
I used
SELECT DISTINCT state_province from table
ORDER by state_province
but it just alphabetizes everything.
Thanks
Unfortunately, I have a field in a database that is labeled state_province. It contains state abbreviations such as NY for New York. It also contains Provinces like Alberta.
How can you arrange that data when i select it?
I'd like to have all the US states at the top of my list in alphabetical order and have the provinces at the end of my list in alphabetical order.
I used
SELECT DISTINCT state_province from table
ORDER by state_province
but it just alphabetizes everything.
Thanks