I inherited a database design that has a table with 4 columns at the end labeled Sales, Service, Technology, HR
The table is class information with those 4 columns indicating the type of class for each row. The data in those 4 columns is
either a 1 or a zero. To make matters worse, there are some classes that have a 1 in Service and in technology. Poor design, I know.
I can’t change it because I will be getting a download every month to do reports off of.
What I’m looking to do is create an additional column that has the actual type of class in it. Sales, Service, Technology, HR.
I’m OK with having a class type of “ServiceTechnology” for the rows that have a 1 on both columns.
I don’t know if down the line there will be other classes with multiple 1’s for the value.
I tried using multiple update queries but didn’t know how to handle the issue of multiple 1’s.
Any help would be appreciated,
Thanks,
Scott
-
Combine columns (2000)
- This topic has 2 replies, 2 voices, and was last updated 18 years, 5 months ago.
AuthorViewing 0 reply threadsAuthorViewing 0 reply threads