I want to name the column alias based on the column value in mysql. Is that possible?
Something like this;
select case when answer_type = \'RB\'
select if(answer_type="RB",'radio',if(answer_type != "RB",'everything_else',NULL)) as answer_type from XTable;