AndreasAuer
IS-IT--Management
I have to do a select on a table called produktion. The primary keys are bezugnr and lfdnr where bezugnr is the number of an order and the lfdnr marks the number of the position in the order. Now I have to get max(berende) from all positions per order except the one with 'VERSAND' in column artnr. The Problem now is that I also have to get berstart from the position with 'VERSAND' in artnr. I have to get this into one select to make a view.