2025-01-17 11:03:00 +01:00
|
|
|
{% extends 'minifigure/base/select.sql' %}
|
|
|
|
|
|
|
|
{% block total_missing %}
|
2025-01-20 19:39:12 +01:00
|
|
|
SUM(IFNULL("missing"."quantity", 0)) AS "total_missing",
|
2025-01-17 11:03:00 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block join %}
|
2025-01-20 19:39:12 +01:00
|
|
|
LEFT JOIN "missing"
|
|
|
|
ON "minifigures"."fig_num" IS NOT DISTINCT FROM "missing"."set_num"
|
|
|
|
AND "minifigures"."u_id" IS NOT DISTINCT FROM "missing"."u_id"
|
2025-01-17 11:03:00 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block group %}
|
|
|
|
GROUP BY
|
2025-01-20 19:39:12 +01:00
|
|
|
"minifigures"."fig_num",
|
|
|
|
"minifigures"."u_id"
|
2025-01-17 11:03:00 +01:00
|
|
|
{% endblock %}
|