Unique vs Distinct keyword in Oracle

前端 未结 4 1771
渐次进展
渐次进展 2021-01-18 17:54

I am a bit confused about the uses of these words. I have a table with he following columns: SITE, LAT, LONG, NAME, ......

I want results with unique (or is it disti

4条回答
  •  一向
    一向 (楼主)
    2021-01-18 18:24

    I always like to see a count of how many of each unique item there is so I would:

    select lat,long, count(lat) from table group by lat,long but thats just me

提交回复
热议问题