NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

SQLite Small. Fast. Reliable. Choose any three.
Aggregate Functions (funciones agregadas)
The aggregate functions shown below are available by default. Additional aggregate functions written
in C may be added using the sqlite3_create_function() API.
In any aggregate function that takes a single argument, that argument can be preceded by the
keyword DISTINCT. In such cases, duplicate elements are filtered before being passed into the
aggregate function. For example, the function "count(distinct X)" will return the number of distinct
values of column X instead of the total number of non-null values in column X.
avg(X) The avg() function returns the average value of all non-NULL X within a group.
String and BLOB values that do not look like numbers are interpreted as 0.
The result of avg() is always a floating point value as long as at there is at
least one non-NULL input even if all inputs are integers. The result of avg() is
NULL if and only if there are no non-NULL inputs.
count(X)
count(*)
The count(X) function returns a count of the number of times that X is not
NULL in a group.
The count(*) function (with no arguments) returns the total number of rows in
the group.
group_concat(X)
group_concat(X,Y)
The group_concat() function returns a string which is the concatenation of all
non-NULL values of X.
If parameter Y is present then it is used as the separator between instances
of X. A comma (",") is used as the separator if Y is omitted. The order of the
concatenated elements is arbitrary.
SQLite Small. Fast. Reliable. Choose any three.
max(X) The max() aggregate function returns the maximum value of all values in the
group. The maximum value is the value that would be returned last in an
ORDER BY on the same column. Aggregate max() returns NULL if and only if
there are no non-NULL values in the group.
min(X) The min() aggregate function returns the minimum non-NULL value of all
values in the group. The minimum value is the first non-NULL value that
would appear in an ORDER BY of the column. Aggregate min() returns NULL if
and only if there are no non-NULL values in the group.
sum(X)
total(X)
The sum() and total() aggregate functions return sum of all non-NULL values
in the group. If there are no non-NULL input rows then sum() returns NULL
but total() returns 0.0. NULL is not normally a helpful result for the sum of no
rows but the SQL standard requires it and most other SQL database engines
implement sum() that way so SQLite does it in the same way in order to be
compatible. The non-standard total() function is provided as a convenient way
to work around this design problem in the SQL language.
The result of total() is always a floating point value. The result of sum() is an
integer value if all non-NULL inputs are integers. If any input to sum() is
neither an integer or a NULL then sum() returns a floating point value which
might be an approximation to the true sum.
Sum() will throw an "integer overflow" exception if all inputs are integers or
NULL and an integer overflow occurs at any point during the computation.
Total() never throws an integer overflow.
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.