1.12. SQL¶
You can even have SQL in an activecode.
Before you keep reading...
Runestone Academy can only continue if we get support from individuals like you. As a student you are well aware of the high cost of textbooks. Our mission is to provide great books to you for free, but we ask that you consider a $10 donation, more if you can or less if $10 is a burden.
.. activecode:: sql1
:language: sql
:autograde: unittest
:dburl: /_static/bikeshare.db
select bike_number, max(duration)
from trip_data
group by bike_number
order by max(duration) desc
limit 4;
====
assert 0,0 == W00379
assert 0,1 == 86355
assert 2,1 == 86336
You have attempted 1 of 3 activities on this page