Seksjon 3. Kapittel 2
single
SUMming values
Sveip for å vise menyen
There is one more function that has to be implemented - function for summing values. For example, we may want to calculate the total revenue for a certain item.
To sum values in column use SUM function followed by column which values you want to sum. For our abstract example,
123SELECT SUM(revenue) FROM sells WHERE item = 'Sofa'
Please note, that
SUMfunction works only with numeric columns.
Oppgave
Swipe to start coding
From the audi_cars table calculate the total tax for all RS4 cars.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 2
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår