Advertisement
miknik97

sosiasty turborower

Apr 3rd, 2019
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.25 KB | None | 0 0
  1. select concat(imie, ' ', nazwisko, ' ', wynagrodzenie*12) as 'DOCHOD' from pracownicy order by dochod asc;
  2. select concat(imie, ' ', nazwisko, ' jest zatrudniony od daty ', data_zatrudnienia, ' i jego dochod miesieczny wynosi ', wynagrodzenie , ' zl') as 'RAPORT' from pracownicy order by nazwisko, imie desc;
  3. select nazwisko from pracownicy where length(nazwisko)>6 order by length(nazwisko) desc;
  4. select concat(imie, ' ', nazwisko, ' ', data_ur) as 'osoba' from czytelnicy where year(data_ur) between 1970 and 1990 order by data_ur desc;
  5. select concat(imie, ' ', nazwisko, ' ', miasto) as 'Aktualni Czytelnicy' from czytelnicy where data_skreslenia is null;
  6. select * from wypozyczenia where month(data_wypozyczenia)=5 and year(data_wypozyczenia)=2009 order by dayofmonth(data_wypozyczenia) asc limit 5;
  7. select nr_transakcji from wypozyczenia where nr_transakcji>=20 and nr_transakcji<=22;
  8. select nazwisko from czytelnicy where nazwisko between 'da_' and 'ko_';
  9. select concat(imie, ' ', nazwisko, ' ', year(data_ur)) as 'czytelniczki' from czytelnicy where year(data_ur)>=1970 and plec='K';
  10. select distinct concat(imie, ' ', nazwisko) as 'Osoba' from czytelnicy where nazwisko like '%k%' andorder by nazwisko desc;
  11. select date_sub(curdate(), interval 100 days)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement