Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- select Data_wyp,Miasto,Ulica,Numer
- from wypozyczenie, miejsce
- where Data_wyp is not NULL and wypozyczenie.Miejsce_wyp = miejsce.ID
- select Miasto,Ulica,Numer
- from miejsce left outer join wypozyczenie
- on miejsce.ID = Miejsce_wyp
- where Data_wyp is NULL
- */
- SELECT MAX(Kwota),ID_Klienta
- FROM wypozyczenie
- GROUP BY ID_Klienta
- SELECT Miasto,Ulica,COUNT(*)
- FROM miejsce
- GROUP BY Miasto, Ulica
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement