次の行を含むテーブルがあります。
╔══════════╦═══════════╦════════╗
║ PK_VALUE ║ RATING_ID ║ RATING ║
╠══════════╬═══════════╬════════╣
║ 11 ║ 1 ║ 90 ║
║ 11 ║ 2 ║ 80 ║
║ 11 ║ 3 ║ 90 ║
║ 12 ║ 1 ║ 90 ║
║ 12 ║ 2 ║ 80 ║
║ 12 ║ 3 ║ 90 ║
╚══════════╩═══════════╩════════╝
上記の表を次のようにします。
╔══════════╦════════════╦════════════╦════════════╗
║ PK_VALUE ║ RATING_ID1 ║ RATING_ID2 ║ RATING_ID3 ║
╠══════════╬════════════╬════════════╬════════════╣
║ 11 ║ 90 ║ 80 ║ 90 ║
║ 12 ║ 90 ║ 80 ║ 90 ║
╚══════════╩════════════╩════════════╩════════════╝
Google 検索で見つけた提案をいくつか試してみましたが、表に挿入する必要があることがわかりました。これについてはよくわかりません。どんな提案も歓迎...
I have uploaded the screenshots related to my doubt..
In this image we can see two review ID's for the same pk_value.. But I am receiving only one review ID after including your query..
上記では How can I get result of both the review ID's???