Guest User

Untitled

a guest
Dec 12th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. select substr(name,1,1) as alpha, count(id)/30
  2. from rubygems
  3. group by substr(name,1,1);
  4.  
  5. alpha | ?column?
  6. -------+----------
  7. _ | 0
  8. - | 0
  9. . | 0
  10. 0 | 0
  11. 1 | 0
  12. 2 | 0
  13. 3 | 0
  14. 4 | 0
  15. 5 | 0
  16. 6 | 0
  17. 7 | 0
  18. 8 | 0
  19. 9 | 0
  20. a | 329
  21. A | 4
  22. b | 214
  23. B | 3
  24. c | 383
  25. C | 6
  26. d | 230
  27. D | 4
  28. e | 174
  29. E | 2
  30. f | 231
  31. F | 3
  32. g | 217
  33. G | 3
  34. h | 174
  35. H | 2
  36. i | 116
  37. I | 1
  38. j | 141
  39. J | 2
  40. k | 88
  41. K | 1
  42. l | 174
  43. L | 2
  44. m | 335
  45. M | 4
  46. n | 118
  47. N | 2
  48. o | 135
  49. O | 1
  50. p | 264
  51. P | 4
  52. q | 30
  53. Q | 0
  54. r | 496
  55. R | 6
  56. s | 530
  57. S | 8
  58. t | 260
  59. T | 4
  60. u | 61
  61. U | 1
  62. v | 103
  63. V | 0
  64. w | 110
  65. W | 1
  66. x | 25
  67. X | 0
  68. y | 40
  69. Y | 0
  70. z | 28
  71. Z | 0
Add Comment
Please, Sign In to add comment