SELECT tug_shahar, SUM (stipendiya)
FROM talaba
GROUP BY tug_shahar;
Misollar:
1. Talabalar umumiy soni aniqlansin.
AS (sifat ko’rinishida ish olib boradi)
SELECT COUNT (*) AS talaba_soni (SELECT-tanlangan COUNT-
ro’yhatdan sanash)
FROM talaba;
2. Yuqori stipendiya oladigan talabalar soni aniqlansin.
SELECT COUNT (*) AS alo_soni
FROM talaba
WHERE (
qayerda, qancha
) stipendiya>150000;
3. Talabalarning o`rta stipendiyasi ming so`mda aniqlansin:
Do'stlaringiz bilan baham: