select concat(imie, ' ', nazwisko, ' ', wynagrodzenie*12) as 'DOCHOD' from pracownicy order by dochod asc; 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; select nazwisko from pracownicy where length(nazwisko)>6 order by length(nazwisko) desc; select concat(imie, ' ', nazwisko, ' ', data_ur) as 'osoba' from czytelnicy where year(data_ur) between 1970 and 1990 order by data_ur desc; select concat(imie, ' ', nazwisko, ' ', miasto) as 'Aktualni Czytelnicy' from czytelnicy where data_skreslenia is null; select * from wypozyczenia where month(data_wypozyczenia)=5 and year(data_wypozyczenia)=2009 order by dayofmonth(data_wypozyczenia) asc limit 5; select nr_transakcji from wypozyczenia where nr_transakcji>=20 and nr_transakcji<=22; select nazwisko from czytelnicy where nazwisko between 'da_' and 'ko_'; select concat(imie, ' ', nazwisko, ' ', year(data_ur)) as 'czytelniczki' from czytelnicy where year(data_ur)>=1970 and plec='K'; select distinct concat(imie, ' ', nazwisko) as 'Osoba' from czytelnicy where nazwisko like '%k%' andorder by nazwisko desc; select date_sub(curdate(), interval 100 days)