From 8c8a5c9762232e9c5a6821ab338faecd502fdd30 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 3 Apr 2024 08:07:16 +0200 Subject: [PATCH] show boats which have place in boatshouse --- src/model/boat.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/model/boat.rs b/src/model/boat.rs index cb03e2c..8db886c 100644 --- a/src/model/boat.rs +++ b/src/model/boat.rs @@ -215,12 +215,9 @@ SELECT b.external FROM boat AS b -LEFT JOIN - boathouse AS bh ON b.id = bh.boat_id WHERE b.external = false 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 b.name DESC; " -- 2.45.2