BrickTracker/bricktracker/sql/minifigure/base/base.sql

35 lines
940 B
MySQL
Raw Normal View History

2025-01-17 11:03:00 +01:00
SELECT
2025-01-27 18:39:35 +01:00
{% block set %}{% endblock %}
"bricktracker_minifigures"."quantity",
"rebrickable_minifigures"."figure",
"rebrickable_minifigures"."number",
"rebrickable_minifigures"."name",
"rebrickable_minifigures"."image",
2025-01-17 11:03:00 +01:00
{% block total_missing %}
NULL AS "total_missing", -- dummy for order: total_missing
2025-01-17 11:03:00 +01:00
{% endblock %}
{% block total_quantity %}
NULL AS "total_quantity", -- dummy for order: total_quantity
2025-01-17 11:03:00 +01:00
{% endblock %}
{% block total_sets %}
NULL AS "total_sets" -- dummy for order: total_sets
2025-01-17 11:03:00 +01:00
{% endblock %}
2025-01-27 18:39:35 +01:00
FROM "bricktracker_minifigures"
INNER JOIN "rebrickable_minifigures"
ON "bricktracker_minifigures"."rebrickable_figure" IS NOT DISTINCT FROM "rebrickable_minifigures"."figure"
2025-01-17 11:03:00 +01:00
{% block join %}{% endblock %}
{% block where %}{% endblock %}
{% block group %}{% endblock %}
{% if order %}
ORDER BY {{ order }}
{% endif %}
{% if limit %}
LIMIT {{ limit }}
{% endif %}