Compare commits
4 Commits
b0ea0668c7
...
d0bbf8f181
Author | SHA1 | Date | |
---|---|---|---|
d0bbf8f181 | |||
8c8a5c9762 | |||
4e1de0c886 | |||
06f9fcc427 |
@ -215,12 +215,9 @@ 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;
|
||||||
"
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user