Build Your Own DatabaseDriven Website Using PHP amp;amp; MySQL [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Build Your Own DatabaseDriven Website Using PHP amp;amp; MySQL [Electronic resources] - نسخه متنی

Kevin Yank

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








Functions for Use with GROUP BY Clauses

Also known
as summary functions, the following are intended for
use with GROUP BY clauses, where they will produce values
based on the set of records making up each row of the final result set.

If used without a GROUP BY clause, these functions
will cause the result set to be displayed as a single row, with a value calculated
based on all of the rows of the complete result set. Without a GROUP
BY
clause, mixing these functions with columns that do not contain
summary functions will cause an error, because you cannot collapse those columns
into a single row and get a sensible value.
























COUNT(expr)


This function returns a count of the number of times in the ungrouped
result set that expr had a non-NULL value.
If COUNT(*) is used, it will simply provide a count of
the number of rows in the group, irrespective of NULL values.


COUNT(DISTINCT expr[,expr ...])


This function returns a count of the number of different non-NULL values
(or sets of values, if multiple expressions are provided).


AVG(expr)


This function calculates the arithmetic mean (average) of the values
appearing in the rows of the group.


MIN(expr),MAX(expr)


This function returns the smallest or largest value of expr in
the rows of the group.


SUM(expr)


This function returns the sum of the values for expr in
the rows of the group.


STD(expr),STDDEV(expr)


This function returns the standard deviation of the values for expr in
the rows of the group (either of the two function names may be used).


BIT_OR(expr),BIT_AND(expr)


This function calculates the bit-wise OR and the bit-wise AND of the
values for expr in the rows of the group, respectively.


/ 190