Query con totale parziale

di il
1 risposte

Query con totale parziale

Salve

ho una tabella miaTabella
id Intero lungo 4
nome Testo 50
importo Precisione singola 4
flag Sì/No 1

e' possibile creare una query CON UNA COLONNA CON IL TOTALE PARZIALE?

id nome importo flag
1 uno 100 100 FALSO
2 due 20 120 VERO
3 tre 500 620 VERO
4 quattro 60 680 FALSO
5 cinque 550 1230 FALSO

col totale progressivo

e una col totale progressivo anche se filtrata o ordinata in modo diverso?
where FLAG = TRUE

id nome importo flag
2 due 20 20 VERO
3 tre 500 520 VERO

GRAZIE ANTICIPATAMENTE

1 Risposte

Devi accedere o registrarti per scrivere nel forum
1 risposte