I have inherited a database that was not set up as being relationally friendly. I am trying to report on traffic conditions in comparison with weather conditions. There are four categories of weather distinguished by their own separate fields. The name of the fields are: Sunny, Rainey, Foggy, Stormy. There is one field (conditions), however, that indicates traffic conditions: light, moderate, heavy.
The query looks like this:
CONDITIONS SUNNY RAINEY FOGGY STORMY
Light 0 0 1 0
Light 0 0 0 1
Heavy 1 0 0 0
Moderate 0 1 0 1
The 1(s) indicate "yes" and the 0(s)indicate "no".
I have been asked to report on all conditions that are other than SUNNY, RAINEY, FOGGY, STORMY. How can I extract that data to place it in a abstract category called "Other"? The report would look like the following.
CONDITIONS SUNNY RAINEY FOGGY STORMY Other
Light 0 0 1 0
Light 0 0 0 1
Heavy 1 0 0 0
Moderate 0 1 0 1
The query looks like this:
CONDITIONS SUNNY RAINEY FOGGY STORMY
Light 0 0 1 0
Light 0 0 0 1
Heavy 1 0 0 0
Moderate 0 1 0 1
The 1(s) indicate "yes" and the 0(s)indicate "no".
I have been asked to report on all conditions that are other than SUNNY, RAINEY, FOGGY, STORMY. How can I extract that data to place it in a abstract category called "Other"? The report would look like the following.
CONDITIONS SUNNY RAINEY FOGGY STORMY Other
Light 0 0 1 0
Light 0 0 0 1
Heavy 1 0 0 0
Moderate 0 1 0 1