Return all columns with distinct on multiple columns in SQL table

前端 未结 2 1427
梦毁少年i
梦毁少年i 2021-01-29 16:03

I have 5 columns in sql table and I need all the 5 columns as out put but with distinct operation on three columns

Need to return all the columns with distinct operation

2条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 16:27

    You can use a groupby for the three columns you want 'distinct'.

提交回复
热议问题