Definition von Basis-QS-Views für die KFOQSDB
view V_QSE_BEENDET selects all beendete Cases ranked by newest Endedatum
ranking uses window functions in PostgreSQL: https://www.postgresql.org/docs/9.1/static/tutorial-window.html