Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データセットに重複した行があります。そこから個別の行を選択するにはどうすればよいですか。
コメントから: 私のクエリは次のようなものです:
select name, age from student
データセットで出力を受け取ると、出力は重複した名前を持つ行で構成されます。データセット自体を使用して、別の場所に重複する値を持つ同じクエリが必要なため、これから別の名前を選択する必要があります。
select DISTINCT name, age from student
個別のデータと完全なデータ (重複する値を含む) の両方が必要な場合は、2 つのデータセットを維持するか、現在のように作業を続ける必要があります。