We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7edd874 commit 6b2626aCopy full SHA for 6b2626a
1 file changed
MySQL/trips-and-users.sql
@@ -51,6 +51,6 @@ t.Request_at Day,
51
round(sum(case when t.Status = 'completed' then 0 else 1 end) / count(*), 2) Rate
52
from Trips t
53
inner join Users u
54
-on t.Client_Id = u.Users_Id and u.Banned='No'
+on t.Client_Id = u.Users_Id and u.Banned = 'No'
55
where t.Request_at between '2013-10-01' and '2013-10-03'
56
group by t.Request_at
0 commit comments