forked from Ruderverein-Donau-Linz/rowt
		
	show boats which have place in boatshouse
This commit is contained in:
		@@ -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;
 | 
			
		||||
        "
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user