@petermのソリューションを使用していますが、うまくいき ます。
しかし、別の質問があります。以下のように結果を得るにはどうすればよいですか:
Name | SO No. | Previous SO | Previous SO Details
---------------------------------------------------
Adrian | SO-00005 | SO-00002 | details SO-00002
データのサンプル:
Name | SO No. | SO Details
------------------------------------
Adrian | SO-00001 | details SO-00001
Adrian | SO-00002 | details SO-00002
Bianca | SO-00003 | details SO-00003
Carrie | SO-00004 | details SO-00004
Adrian | SO-00005 | details SO-00005
Bianca | SO-00006 | details SO-00006
Adrian | SO-00007 | details SO-00007