0

My question is related to this one. However, I have only varchar data so I can't use the solutions there. My data looks like this:

id   | activity | type
------------------------
al12 |  a1a4    | MOVE
la23 |  2a5e    | WAIT
la23 |  2a5e    | WAIT
ie42 |  35a8    | STAY

The third row is a duplicate. How can I remove it?

Gaurav Bansal
  • 5,221
  • 14
  • 45
  • 91

1 Answers1

3

Use DISTINCT?

SELECT DISTINCT id, activity, type
FROM your_table

https://prestodb.github.io/docs/current/sql/select.html

dfundako
  • 8,022
  • 3
  • 18
  • 34