home / cp40x

Cases by year

Counts per year. Optional start_year / end_year (defaults 1349–1596, the min/max years in the DB). Rows with NULL year are omitted.

Custom SQL query returning 78 rows (hide)

SELECT year, COUNT(*) AS n
FROM cases
WHERE year IS NOT NULL
  AND year >= CAST(COALESCE(NULLIF(:start_year, ''), '1349') AS INTEGER)
  AND year <= CAST(COALESCE(NULLIF(:end_year, ''), '1596') AS INTEGER)
GROUP BY year
ORDER BY year

Query parameters

Edit SQL

This data as json, CSV

yearn
1349 5418
1377 4566
1381 8996
1396 8250
1399 4665
1401 10489
1403 9062
1408 10039
1412 9280
1413 4393
1415 8990
1418 7611
1419 7854
1421 6729
1422 4322
1424 6768
1425 8266
1430 7911
1433 8112
1434 8428
1437 7647
1440 7945
1442 7721
1444 7954
1446 7987
1448 7543
1450 4185
1453 6841
1455 7469
1458 7001
1460 22485
1461 3099
1463 5072
1468 5125
1470 2657
1472 5867
1473 4309
1475 5204
1477 5239
1480 5490
1483 6274
1484 16920
1485 7511
1486 3342
1489 4596
1490 4424
1492 4152
1495 3794
1498 3980
1500 4562
1502 4234
1505 4335
1508 4474
1510 4691
1512 4556
1514 4471
1516 4059
1521 5418
1524 4313
1525 4766
1526 4761
1528 5750
1529 5670
1530 5183
1531 5463
1536 5308
1546 4562
1563 7191
1567 8464
1571 12118
1573 10912
1578 10522
1580 13230
1584 16792
1585 16443
1593 20500
1595 21039
1596 27020
Powered by Datasette · Queries took 75.557ms