I have an sql query \"Select * from tablename\" whose output is
col1 col2 A 1 B 2 C 3
I want to modify the ab
You want to use PIVOT or COALESCE in sql.Here is a nice examples how to converting rows to columns. Five methods converting rows to columns
PIVOT
COALESCE
.