Top "Aggregate-functions" questions

Aggregate functions are a subset of SQL functions that compute a single value from multiple input rows, mostly used in `SELECT` queries with a `GROUP BY` clause.

Count number of times value appears in particular column in MySQL

This has probably been asked before, but I'm unable to make my way through the myriad of search results. Given …

mysql aggregate-functions
mysql count group by having

I have this table: Movies (ID, Genre) A movie can have multiple genres, so an ID is not specific to …

mysql sql group-by aggregate-functions
use mysql SUM() in a WHERE clause

suppose I have this table id | cash 1 200 2 301 3 101 4 700 and I want to return the first row in which the sum of …

mysql aggregate-functions having-clause
Naming returned columns in Pandas aggregate function?

I'm having trouble with Pandas' groupby functionality. I've read the documentation, but I can't see to figure out how to …

python group-by pandas aggregate-functions
How to select data where a field has a min value in MySQL?

I want to select data from a table in MySQL where a specific field has the minimum value, I've tried …

mysql sql aggregate-functions greatest-n-per-group
MAX() and MAX() OVER PARTITION BY produces error 3504 in Teradata Query

I am trying to produce a results table with the last completed course date for each course code, as well …

sql aggregate-functions teradata database-partitioning
MySQL Update Column +1?

I was wondering what would be the easiest way to update a column by +1? I will be updating a post …

mysql sql sql-update aggregate-functions
GROUP BY and COUNT in PostgreSQL

The query: SELECT COUNT(*) as count_all, posts.id as post_id FROM posts INNER JOIN votes ON votes.post_…

sql postgresql count distinct aggregate-functions
Does T-SQL have an aggregate function to concatenate strings?

Possible Duplicates: Implode type function in SQL Server 2000? Concatenate row values T-SQL I have a view which I'm querying that …

sql-server sql-server-2005 tsql group-by aggregate-functions
How to group mysql rows with same column value into one row?

I have two tables, keywords and data. Table keywords have 2 columns (id, keyword), table data have 3 columns (id[foreign key …

sql mysql aggregate-functions