BrickTracker/bricktracker/sql/minifigure/list/missing_part.sql
2025-01-17 11:03:00 +01:00

16 lines
367 B
SQL

{% extends 'minifigure/base/select.sql' %}
{% block where %}
WHERE minifigures.fig_num IN (
SELECT
missing.set_num
FROM missing
WHERE missing.color_id IS NOT DISTINCT FROM :color_id
AND missing.element_id IS NOT DISTINCT FROM :element_id
AND missing.part_num IS NOT DISTINCT FROM :part_num
GROUP BY missing.set_num
)
{% endblock %}