salve, ho questa tabella
codice:
mysql> select * from Preventivo;
+---------------+----------+--------+--------+------------+------------+
| Id_preventivo | Quantità | Prezzo | Sconto | Data | Id_lamiera |
+---------------+----------+--------+--------+------------+------------+
| 001/9 | 50 | 3.00 | 0.20 | 2009-08-02 | 0001 |
| 001/9 | 75 | 2.00 | 0.20 | 2009-08-02 | 0002 |
| 001/9 | 40 | 2.00 | 0.20 | 2009-08-02 | 0003 |
| 002/9 | 30 | 3.00 | 0.20 | 2009-08-10 | 0004 |
| 002/9 | 80 | 2.00 | 0.20 | 2009-08-10 | 0005 |
+---------------+----------+--------+--------+------------+-----------
e volevo fare una query che mi Calcola la quantità media di lamiera in un certo periodo di tempo.