FROM table_name
WHERE condition
GROUP BY column_name(s)
HAVING condition
ORDER BY column_name(s);
bu having operatorining ishlash sintaksini ifodalab beradi.
select nomi,sum(miqdori) from pechene group by nomi having sum(miqdori)>450;
Shuningdek where = having qachon bo’ladi?
select * from pechene having miqdori>450;
select * from pechene where miqdori>450;