25.12.2012 Views

Cours SGBD LAI2 - Institut supérieur d'informatique de Mahdia

Cours SGBD LAI2 - Institut supérieur d'informatique de Mahdia

Cours SGBD LAI2 - Institut supérieur d'informatique de Mahdia

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Regroupement: clause HAVING<br />

�La clause HAVING permet, <strong>de</strong> façon analogue à<br />

la clause WHERE, <strong>de</strong> poser <strong>de</strong>s conditions sur le<br />

résultat du regroupement<br />

select col1 [,col2 ...]<br />

from table1 [, table2]<br />

[where prédicat]<br />

[group by expression1 [, expression2…]<br />

[having prédicat] ];<br />

�Le prédicat figurant dans la clause HAVING ne<br />

peut porter que sur <strong>de</strong>s caractéristiques <strong>de</strong>s<br />

fonctions <strong>de</strong> groupe figurant dans la clause<br />

GROUP BY<br />

Riadh HADJ M’TIR – 2011/2012 136

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!