SELECT last_name, birth, death FROM president WHERE (YEAR(birth)>1800 AND YEAR(birth)<=1900) OR (YEAR(death)>1800 AND YEAR(death)<=1900)
oraz prezydentów w latach czterdziestych XX wieku:
SELECT last_name, birth, death FROM president WHERE (YEAR(birth)>1940 AND YEAR(birth)<=1950) OR (YEAR(death)>1940 AND YEAR(death)<=1950)
Proszę o sprawdzenie czy dobrze to zrealizowałem, bo miałem wcześniej problemy, a teraz wydało mi sie banalne

pzdr