Bitta qatorda: mahsulotlar soni, ombordagi jami dona (stock yig‘indisi) va o‘rtacha narx (2 xonagacha yaxlitlangan).
Namunaviy ma‘lumotlar
| id integer | name text | category text | price integer | stock integer |
|---|---|---|---|---|
| 1 | Futbolka | Kiyim | 275000 | 84 |
| 2 | Kamera | Elektronika | 2165000 | 13 |
| 3 | Shim | Kiyim | 880000 | 101 |
| 4 | Sariq devni minib | Kitoblar | 1285000 | 34 |
| 5 | Quloqchin | Elektronika | 1785000 | 86 |
| 6 | Sut | Oziq-ovqat | 380000 | 108 |
| 7 | Koptok | Sport | 270000 | 83 |
| 8 | Non | Oziq-ovqat | 980000 | 94 |
| 9 | Gantel | Sport | 1105000 | 77 |
Jadval tuzilishi (CREATE TABLE)
CREATE TABLE products (id INTEGER PRIMARY KEY, name TEXT, category TEXT, price INTEGER, stock INTEGER);
Natija
Uch ustun: products_count, total_stock, avg_price.
Namunaviy ma‘lumotlarda kutilgan natija
| 9 | 680 | 1013888.89 |
Qatorlar tartibi ahamiyatsiz, ustunlar tartibi muhim. Yechim yashirin, kattaroq ma‘lumotlarda ham tekshiriladi.