次の「製品」テーブルがあるとします。
ProductID | ProductName
----------+---------
0255463 | ProductA
0254483 | ProductB
0255341 | ProductC
0905454 | ProductD
(Android の SQLite で) 2 つの連続する行をそれぞれ 1 つの結果行に選択する方法はありますか? 目的のクエリ結果は次のとおりです。
FirstProductID | FirstProductName | SecondProductID | SecondProductName
---------------+------------------+-----------------+---------
0255463 | ProductA | 0254483 | ProductB
0255341 | ProductC | 0905454 | ProductD
テーブルの内容に関係なく、どのテーブルにも使用できる一般的なソリューションが必要です。