Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select o.* from osoby o, zatrudnienia z, wydzialy w where o.id=z.id_osoby and z.id_wydzialy=w.id and w.nazwa in
- (
- select w.nazwa from wydzialy w, zatrudnienia z where z.id_wydzialy=w.id and w.szef=
- (
- select w.szef from wydzialy w, osoby o ,zatrudnienia z where o.id=z.id_osoby and z.id_wydzialy=w.id and o.data_ur =
- (
- select min(o.data_ur) from osoby o,wydzialy w where o.id=w.szef
- )
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement