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
- */
- SELECT Klient.Nazwisko,Klient.Imie,COUNT(*)
- FROM Klient /*right outer*/ JOIN wypozyczenie
- ON wypozyczenie.ID_Klienta = Klient.ID
- GROUP BY Nazwisko,Imie
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement