Selecting Distinct field and row num just to display an id number gives duplicated data

前端 未结 3 1200
孤城傲影
孤城傲影 2021-01-27 06:07

I have a table application and it has 10 columns. category is one column and this column has duplicated values. To get distinct values I have a query

SELECT distinc

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-27 06:48

    please use

    SELECT CATEGORY as CategoryName, sum(rownum) FROM APPLICATION WHERE applicationId=? GROUP BY CATEGORY
    

提交回复
热议问题