I have a series of values in my table. Each record only has one value, but they fall in these number sets:
256-260
512-516
768-772
1024-1028
1280-1284
Now each of these sets has five values, and I figured out how to convert all the numbers into a value of 0-4 and display this in my SELECT query (ie 256 = 0, 257 = 1, 512 = 0, 513 = 1, etc)
I am stumped on the next step though which is that I would like to display the word "Excellent" if the number = 0, "Very Good" if it is a 1, and so on down to "Awful" if it is a 4. Is there anyway to do this in my Select Query. I am not wanting to update or change the value in this field just to display it in this format when the query is viewed. I thought about creating another table with 0-4 in one column and the names in the 2nd, but I couldn't figure out how to link the two tables then. I would prefer not to have to have another table anyway if there is an easier way to do this.
Thank you,
ricomundy
256-260
512-516
768-772
1024-1028
1280-1284
Now each of these sets has five values, and I figured out how to convert all the numbers into a value of 0-4 and display this in my SELECT query (ie 256 = 0, 257 = 1, 512 = 0, 513 = 1, etc)
I am stumped on the next step though which is that I would like to display the word "Excellent" if the number = 0, "Very Good" if it is a 1, and so on down to "Awful" if it is a 4. Is there anyway to do this in my Select Query. I am not wanting to update or change the value in this field just to display it in this format when the query is viewed. I thought about creating another table with 0-4 in one column and the names in the 2nd, but I couldn't figure out how to link the two tables then. I would prefer not to have to have another table anyway if there is an easier way to do this.
Thank you,
ricomundy