BrickTracker/bricktracker/sql/set/list/using_minifigure.sql

14 lines
261 B
SQL

{% extends 'set/base/full.sql' %}
{% block where %}
WHERE "bricktracker_sets"."id" IN (
SELECT
"inventory"."u_id"
FROM "inventory"
WHERE "inventory"."set_num" IS NOT DISTINCT FROM :fig_num
GROUP BY "inventory"."u_id"
)
{% endblock %}