selectステートメントをピボットしたいと思います。「Country」、「Store」、および「Sales」の列が表示されます。
今、私は次のような出力が欲しいです:
Store1 Store2 Store3
Country1 2342 2342 5675
Country2 5753 3274 7326
Country3 1543 4367 3367
したがって、基本的には、すべてのストア、すべての国について、salescount が必要です。
入力は(例)から来ます:
Country: StoreNr: ProductSold:
Belgium 23 Car
Belgium 23 House
Netherland 23 Car
出力は次のようになります。
Store23
Belgium 2
Netherlands 1