BrickTracker/bricktracker/sql/set/list/missing_part.sql

16 lines
379 B
MySQL
Raw Permalink Normal View History

{% extends 'set/base/full.sql' %}
2025-01-17 11:03:00 +01:00
{% block where %}
WHERE "bricktracker_sets"."id" IN (
2025-01-17 11:03:00 +01:00
SELECT
"missing"."u_id"
FROM "missing"
2025-01-17 11:03:00 +01:00
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
2025-01-17 11:03:00 +01:00
GROUP BY "missing"."u_id"
2025-01-17 11:03:00 +01:00
)
{% endblock %}