回答編集履歴
1
追記
test
CHANGED
@@ -7,3 +7,9 @@
|
|
7
7
|
で、Rubyで処理するなら
|
8
8
|
|
9
9
|
`tables = Table.pluck(:store_code, :name).group_by(&:store_code).group_by(&:first).map{|k,a| [k,a.map(&:last)]}.to_h`
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
追記
|
14
|
+
|
15
|
+
`original.group_by{|h| h["store_code"]}.map{|k,a| [k,a.map{|h| h["name"]}]}.to_h`
|