miucon20 > 02-11-13, 10:05 PM
paulsteigel > 03-11-13, 12:52 PM
SELECT songuoi.nam_sinh, (Year(Now())-Year(songuoi.nam_sinh)) AS Tuoi,
IIf(Tuoi-10>0,"Lớn hơn 10",IIf(Tuoi-6>0,"Từ 6 đến 10 tuổi","Dưới 6 tuổi")) AS Dotuoi
FROM songuoi;
SELECT qryCal.Dotuoi, Count(qryCal.Dotuoi) AS CountOfDotuoi
FROM qryCal
GROUP BY qryCal.Dotuoi;
miucon20 > 13-11-13, 01:43 PM