I'm trying to deduplicate based on the values in a single column when using Google Sheets' query() formula.
query('Data'!A2:D, "select A, B, C, D")
In this example, I'd like to pull out the first instance of each pet location -- basically, the data deduplicated by the Location in column C. So something like:
query('Data'!A2:D, "select A, B, C, D where C is unique")
Is there any way to do this gracefully within Google Sheets?
Example sheet with desired output here:
https://docs.google.com/spreadsheets/d/10lvghkMgw1eOLeUp0TmyWzohWOGhQbZisNwrIujCaXA/edit?usp=sharing