Files
hv-brief-jahresabrechnung/Vorstellung/hemsingskotten.sql
2021-02-12 20:57:09 +01:00

16 lines
435 B
SQL

select m.anrede as anrede,
m.vorname as vorname,
m.nachname as nachname,
m.adresszusatz as adresszusatz,
m.strasse as strasse,
m.plz as plz,
m.ort as ort
from mieter m,
objekt o,
wohnung w
where m.einzug < curdate() and
(m.auszug is null or m.auszug > curdate()) and
m.wohnung = w.id and
w.objekt = o.id and
o.shortname = 'Hemsingskotten 38'