这是我的表格“ sample1”
Title Frequency Month1 Month2 Month3 Month 4
tution_fee monthly april may june july
net_fee monthly april may june july
misc annually april may june july
我应该得到一张这样的桌子
tution_fee net_fee misc
april april april
may may may
june june june
july july july
随着我向其中添加数据,“ sample1”表也会增加。
答案 0 :(得分:0)
您需要使用PIVOT
由于您没有提及特定的DBMS,所以我们无法真正为您提供正确的答案。
但是,通过很少的研究,您会发现PIVOT的需求。