Website Development Prices

Search Blog

Wednesday, October 7, 2015

Tabela grupnih funkcija (Group functions table)

avg (kolona) - daje prosecnu vrednost u navedenoj koloni.

count (stavke) - ako navedete kolonu, ova funkcija daje ukupan broj vrednosti u toj koloni (null se zanemarije). Ukoliko ispred imena kolone dodate rec distinct, dobicete ukupan broj jedinstvenih vrednosti u toj koloni. Ako zadate count(*), dobicete ukupan broj redova u tabeli, bez obzira na to da li neki medju njima sadrze vrednosti null

min (kolona) - daje minimalnu vrednost u navedenoj koloni. 

max (kolona)daje maksimalnu vrednost u u navedenoj koloni.

std (kolona)daje standarnu devijaciju vrednosti u u navedenoj koloni.

stddev (kolona) - isto kao i prethodna funkcija.

sum (kolona)daje ukupan zbir vrednost u navedenoj koloni. 


AVG (column) - gives the average value in the specified column.

COUNT (items) - if you specify the column, this function gives the total number of values in the column (NULL is undermining). If in the front of the column name you add the word DISTINCT, you will get the total number of unique values in that column. If you specify a COUNT(*), you will get the total number of rows in the table, regardless of whether some of them contain NULL values.

MIN (COLUMN) - gives a minimum value in the specified column.

MAX (COLUMN) - gives a maximum value in in the  specified column.

STD (COLUMN) - gives a standard deviation values in in the specifiecolumn.

STDDEV (COLUMN) - the same as the previous function.

SUM (COLUMN) - gives a total sum value in the specified column.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.