Forum: MS SQL Nov 16th, 2006 |
| Replies: 4 Views: 2,426 Well, the bad way would be to do something like:
select case color when 0 then 'black' when 1 then 'white' when 2 then 'red' when 4 then 'blue' end as color from myTable
ideally, you would... |
Forum: MS SQL Nov 16th, 2006 |
| Replies: 1 Views: 10,081 I don't have my sql server readily available, but you could use the "create trigger" command, then use the logical tables "inserted" and "deleted" (which represent what is and what was, respectively)... |