SELECT * FROM `mahsulotlar` WHERE `mah_narxi(so``m)`
BETWEEN 500 AND 2000;
4.1 rasm. 1 misoldagi so`rovning natijasi
2. Mahsulotlar soni sanalsin.
SELECT count(*) as `mahsulot soni` FROM `mahsulotlar`;
4.2 rasm. 2 misoldagi so`rovning natijasi
3. Eng yuqori narxga ega bo`lgan mahsulot narxi chiqarilsin.
SELECT MAX(`mah_narxi(so``m)`) as `eng qimmat mahsulot` FROM
`mahsulotlar`;
4.3 rasm. 3 misoldagi so`rovning natijasi
4. Eng arzon bo`lgan mahsulot haqida ma`lumot chiqarilsin.
SELECT * FROM `mahsulotlar` WHERE `mah_narxi(so``m)`=(SELECT
MIN(`mah_narxi(so``m)`) FROM `mahsulotlar`);
Do'stlaringiz bilan baham: |