Create database AggregateFonk
use AggregateFonk
Create Table DersNotlari
(
id int primary key identity(1,1),
ad nvarchar(30),
soyad nvarchar(30),
vize float,
final float
)
use AggregateFonk
insert into DersNotlari (ad,soyad ,vize,final) values ('ercan',':):):)','58','98')
Select * From DersNotlari
Select SUM (d.vize )[Vize Notu Toplamı] from DersNotlari d
Select SUM (d.final )[Final Notu Toplamı] from DersNotlari d
Select AVG (d.vize ) [Vize ],AVG(d.final ) from DersNotlari d
Select MIN (d.final )[Ders Notlari] From DersNotlari d
Select Max (d.vize )[Ders Notlari] From DersNotlari d
drop database AggregateFonk