MySQL Forums
Forum List  »  French

construire une table contenant plusieurs moyennes
Posted by: CLAIRE rault
Date: May 02, 2015 07:42AM

Bonjour,

Je souhaite réaliser une table contenant 3 moyennes calculées sur des intervalles de valuers différents.
Par exemple pour construire une des colonnes j'effectue la commende suivante:
SELECT DISTINCT ID, Date, AVG(pm25) from table where Heure between 7 and 9 order by Date;
Je souhaiterais avoir une deuxième colonne contenant la moyenne de pm25 pour l'intervalle 12 et 14.
Comment puis je faire?

Merci

Options: ReplyQuote


Subject
Views
Written By
Posted
construire une table contenant plusieurs moyennes
2211
May 02, 2015 07:42AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.