I'm fairly new at SQL
and have run into an issue that has me stumped. It's easier to just explain what I'm trying to do. I have a table that has a column t.number
that contains either a 4, a 6 or something uninteresting to me. It corresponds with a a text field, t.text
. Here's the pseudo code of what I want to do:
if (t.number == 4)
t.text as ImAFour
else if (t.number == 6)
t.text as ImASix
Everything I try to write ends up with double entries or overwriting. Any ideas?