sql oracle计数小写/大写

时间:2019-05-01 00:53:30

标签: sql oracle

我的用户名使用大小写: 示例:

  • 凯莉,凯利,凯利,凯利,麦克斯,詹姆斯,詹姆斯,卡尔

如何计算此值以获取金额(计数) 在这种情况下应为:4 而不是8

SELECT 
    username,
    COUNT(*)
FROM 
    usertable
GROUP BY 
   username

1 个答案:

答案 0 :(得分:1)

您可以使用 clang++ -std=c++17 -Wconversion test.cpp test.cpp:18:9: error: no matching member function for call to 'write_impl' write_impl(&Stream::write, buf, len); ^~~~~~~~~~ test.cpp:63:11: note: in instantiation of member function 'writer<user_stream3>::write' requested here w.write(buf, sizeof(buf)); ^ test.cpp:22:10: note: candidate template ignored: couldn't infer template argument 'Write' void write_impl(Write, const char* buf, size_t len) ^ 1 error generated. Compilation exited abnormally with code 1 at Wed May 1 09:48:42 将所有名称转换为相同的大小写,然后计算LOWER的值:

DISTINCT