大きなCSVファイルをテーブルにインポートしました。表のサンプルは次のようになります
name, eye,point,field,date,seconds,sensitivity*10,slope,intercept,T*1000
NESSA SONIA ,R,6,4,08-04-09,32658845,160,1.062300e+001,62538, 1282
NESSA SONIA ,R,6,5,20-05-09,36288632,20, 5.360101e+000,64036, 771
NESSA SONIA ,R,6,6,02-12-09,53223062,60, 3.425260e+000,64590, 767
NESSA SONIA ,L,6,4,08-04-09,32658922,230,4.629489e+000,64382, 582
NESSA SONIA ,L,6,5,20-05-09,36288515,170,2.805373e+000,64901, 511
NESSA SONIA ,L,6,6,02-12-09,53223059,220,3.528252e+000,64694, 1022
右目と左目の「感度*10」の値を、一致するポイントとフィールドの値と比較して、最も高い値(つまり行)を抽出する必要があります。
たとえば、ポイント、フィールド、日付が同じであるため、最初の行と4番目を比較し、感度が最も高いため、4番目を抽出する必要があります。巨大なファイルがあり、すべての値を抽出する必要があります。誰でもSQLクエリを手伝ってもらえますか?