Michael Lang, Daniel Mündlein, Yvo Geier

#1
select id_strafe from strafe
	where höhe > 1000;
#2
select nachname,vorname from spieler
	where ort = 'würzburg'
	order by nachname desc,vorname desc;
#3
select distinct Straße from spieler
	where Straße like '%allee';
#4
use fußball;
select vorname,nachname from spieler
	where (vorname like 'B%' or vorname like 'P%') and nachname not like "______";
#5
select id_spieler, count(tor_id) as 'Toranzahl' from tor
group by id_Spieler;

#6
select nachname,TIMESTAMPDIFF(Year,Geburtsdatum,now()) as 'Alter' from spieler;

#7
select count(ID_spieler),ort from spieler
	where ort = 'Würzburg';

#8
select count(ID_spieler) from spieler
	where Geburtsdatum < "1995-01-15 00:00:00";
#9
select count(ID_spieler) from spieler
	where month(Geburtsdatum) = 7;
#10
select avg(höhe) from strafe;
#11
select count(*) from strafe;
#12
select sum(höhe) from strafe;
#13
select count(ID_spieler) from spieler
	where Geburtsdatum between "1910-10-01 00:00:00" and "1915-02-20 00:00:00";
#14
select count(id_spieler) from spieler
	where TIMESTAMPDIFF(Year,Geburtsdatum,now()) < 25; 
#15
select count(*),ort from spieler
	group by ort;
#16
select ort from spieler
	group by ort
	having count(*) >= 2;
#17
select round(avg(TIMESTAMPDIFF(Year,Geburtsdatum,now())),2) as 'u8ju8uhuu8' 
from spieler 
where team_id =1;

select vorname, nachname, timestampdiff(YEAR, Geburtsdatum, now()) as 'Alter'
	from spieler
    order by timestampdiff(Year, geburtsdatum, now()) desc
    Limit 1;