SQL列出列中以A,B,C-Z开头的名称的百分比

问题描述 投票:-1回答:1

我想显示一列中名称的每个字母的百分比。

例如A = 20%,B = 30%,Z = 10%,依此类推。

名称:

Apple
Ace
Benedict
Been
Broom
Car
Make
Safe
Thanksgiving
Zappers
sql sql-server count substring sql-like
1个回答
0
投票

类似:


0
投票

您需要'LEFT()and COUNT()and GROUP BY`

© www.soinside.com 2019 - 2024. All rights reserved.