Ciao a tutti io dovrei creare una tabella che mi restituisca il conteggio e la somma di alcuni campi numerici tramite una query.

Ho tre tabelle chiamate: w1 ; w2 ; w3
Su ognuna di queste ho i segeunti campi: scheda; data ; minuti offline

scheda A - 01/01/2010 - 34
scheda B - 01/01/2010 - 34
scheda B - 03/01/2010 - 34
scheda A - 04/01/2010 - 34
scheda B - 07/01/2010 - 34
scheda C - 09/01/2010 - 34

Il calcolo che vorrei realizzare e' il seguente:

Se trovo "scheda" allora conta quante volte e somma i minuti offline.

Quindi la query dovrebbe restituire:
Nome Scheda -- Ripetizione --- TOT Minuti
scheda A -------- 2 ----------- 68
scheda B -------- 3 ----------- 102
scheda C -------- 1 ----------- 34

Come faccio le ho provate tutte ...

Grazie