Quote Originally Posted by debasisdas View Post
You can try that using case statment.

If we know the columns set then only we can use the case statement, if did not know the column set then what is the way to get?