Using the distinct function in SQL

前端 未结 18 928
無奈伤痛
無奈伤痛 2021-02-06 16:55

I have a SQL query I am running. What I was wanting to know is that is there a way of selecting the rows in a table where the value in on one of those columns is distinct? When

18条回答
  •  余生分开走
    2021-02-06 17:45

    I am struggling to understand exactly what you wish to do.. but you can do something like this:

    SELECT DISTINCT ColA FROM Table WHERE ...
    

    If you only select a singular column, the distinct will only grab those.

    If you could clarify a little more, I could try to help a bit more.

提交回复
热议问题