Advertisement
miknik97

Krul Krak

Apr 17th, 2019
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.57 KB | None | 0 0
  1. select nazwisko, imie, count(*) from czytelnicy naturaljoin wypozyczenia group by nr_czytelnika;
  2. select k.sygnatura, k.tytul, count(*) from ksiazki k join wypozyczenia using(sygnatura) group by k.sygnatura;
  3. select k.sygnatura, k.tytul, count(*) from ksiazki k join wypozyczenia using(sygnatura) group by k.sygnatura having count(*) >= 5;
  4. select d.id_dzial, nazwa, count(*) from ksiazki join dzialy d using(id_dzial) group by d.id_dzial;
  5. select nazwa, count(*) from stanowisko join pracownicy using(id_stanowisko) where miasto = 'lublin', wynagrodzenie >= 2000 group by id_stanowisko;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement