how to divide the columns in result of query in oracle database
问题 want to split the columns in result of query dynamically, how can i? i have three tables and joined them.to get the required columns. select distinct t1.sal,t1.cat,t2.id,t3.shop from t_table1 t1, t_table2 t2, t_table3 t3, where t1.sno=t2.sno AND t2.cat=t3.cat t3.dept_no=t3.dept_no **output:** t1.sal t1.cat t2.id t3.shop 1900 34R5 10 dense 1900 34r5 10 SVM 1900 34r5 10 bpo 2345 3ER4 11 kpo 2345 3ER4 11 infra 12345 34F4 12 const **desired output:** t1.sal t1.cat t1.tin t2.id t3.shop_1 t3.shop_2