回答編集履歴

1

合計レンタル本数の指定が間違ってたので変更しました

2019/06/14 05:14

投稿

humuhimi
humuhimi

スコア49

test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  ,c.first_name
12
12
 
13
- ,ifnull(sum(r.rental_id),0) as "合計レンタル本数"
13
+ ,count(distinct r.rental_id) as "合計レンタル本数"
14
14
 
15
15
  from
16
16