Actually i dnt want to rename fields all i want to do is write if conditions and create aliases in switch case. so is it possible?
eg if value =1 then fetch the firstname and store it as Emp_name. Here i want to check the value of an attribute and then fetch the corresponding name value and create an alias as Emp_firstname. if value is 2 then fetch the corresponding lastname and create new alias as Emp_lastname.