How to derive Region from City in sql

235 Views Asked by At

I am required to create a new column 'Region'.

I have City (there are multiple cities in the list), County (multiple counties) and State columns available in the source table.

Is there a way to do so in SQL?

Thanks in advance for your kind support.

Here is a sample select statement:

Proc sql;

Create table test_region as 
  select full name, address, city, state, zip from details
...;
quit;
0

There are 0 best solutions below