Compare commits

..

No commits in common. "d0bbf8f181c550330f21676f6ab18a5d86d5ef26" and "b0ea0668c766805d6cf66a405a784b3dc2ff432d" have entirely different histories.

View File

@ -215,9 +215,12 @@ SELECT
b.external b.external
FROM FROM
boat AS b boat AS b
LEFT JOIN
boathouse AS bh ON b.id = bh.boat_id
WHERE WHERE
b.external = false b.external = false
AND b.location_id = (SELECT id FROM location WHERE name = 'Linz') AND b.location_id = (SELECT id FROM location WHERE name = 'Linz')
AND bh.id IS NULL -- This ensures the boat does not have an entry in the boathouse table
ORDER BY ORDER BY
b.name DESC; b.name DESC;
" "