SQL - how to count unique combination of columns

前端 未结 5 927
孤城傲影
孤城傲影 2021-02-04 01:39

I\'m not sure if this is possible but I want to count the number of unique value in a table. I know to count the number of unique folderIDs I do:

select count(f         


        
5条回答
  •  北荒
    北荒 (楼主)
    2021-02-04 01:56

    select APPRSL_ID,SECTION_ID, count(APPRSL_ID||SECTION_ID)
    from REMARKSBYEACHSECTION 
    group by APPRSL_ID,SECTION_ID
    having count(APPRSL_ID||SECTION_ID)>1 ;
    

提交回复
热议问题