Search code examples
How can I improve this query without HAVING Clause...


sqlpostgresqlaggregate-functionspostgresql-13

Read More
Unexpected behavior with using a CTE to update a temp table...


sql-servert-sqlsql-updateaggregate-functionscommon-table-expression

Read More
GROUP BY CASE expression to avoid erroring out...


sqlsql-serversql-server-2005aggregate-functions

Read More
Getting MIN Price in Subquery (using DISTINCT)?...


sqlsql-servert-sqlaggregate-functions

Read More
Scope of a column alias in a SELECT with GROUP BY...


sqlpostgresqlcaseaggregate-functionshaving

Read More
Return multiple columns of the same row as JSON array of objects...


sqlarraysjsonpostgresqlaggregate-functions

Read More
How to GROUP BY an aliased CONCAT() value using CodeIgniter's query builder...


phpcodeigniteraggregate-functionsaliasquery-builder

Read More
How to avoid repeating parent rows when JOINing a one-to-many table with Codeigniter query builder...


phpcodeigniterjoinaggregate-functionsquery-builder

Read More
MySQL SELECT query WHERE JOINed child rows contain all whitelisted column values per parent row...


mysqljoinaggregate-functionsparent-childhaving

Read More
Why do aggregation functions work without Group By?...


sqlt-sqlgroup-byaggregate-functions

Read More
Returning rows that have more than one unique value in a column...


sqlpostgresqlgroup-byaggregate-functions

Read More
Ignore empty values on average math, but show it as zero on result...


mysqlsqlaverageaggregate-functionssql-null

Read More
Why is my CodeIgniter SELECT SUM() query returning 1 row when there should be more?...


phpmysqlcodeigniteraggregate-functionsquery-builder

Read More
Get final balance with latest transaction per account with CodeIgniterfetching data from the table...


phpmysqlcodeignitergroupingaggregate-functions

Read More
SELECT COUNTs of specific column values from qualifying rows in a JOINed table using CodeIgniter&#39...


phpcodeigniterjoinaggregate-functionsquery-builder

Read More
GROUP BY and LIMIT per group and SELECT limited aggregate values per group with CodeIgniter's qu...


phpmysqlcodeigniteraggregate-functionsquery-builder

Read More
CodeIgniter query builder script to GROUP BY two columns, then COUNT(), SUM(), and CONCAT() in the S...


phpmysqlcodeigniteraggregate-functionsquery-builder

Read More
JOIN subqueries containing COUNT() and SUM() expressions in a SELECT query using CodeIgniter's q...


phpmysqlcodeigniteraggregate-functionsquery-builder

Read More
How to use CodeIgniter's select_sum() and return no rows when there are no qualifying records...


phpcodeigniteraggregate-functionsquery-builderresultset

Read More
select the attribute containing a maximum value using the basic operators in relational algebra...


maxaggregate-functionsrelational-algebra

Read More
How to retrieve a sub-array from result of array_agg?...


sqlpostgresqlgroup-byaggregate-functionswindow-functions

Read More
CodeIgniter query involving row filtering based on aggregate data after GROUP BY...


phpmysqlcodeigniteraggregate-functionsquery-builder

Read More
Aggregate function for bit-wise OR...


sql-servert-sqlaggregate-functionssql-server-2022bitflags

Read More
How to group row data in a MySQL query and present the grouped values in an HTML table as ordered li...


phpcodeignitermodel-view-controllergroupingaggregate-functions

Read More
CodeIgniter SELECT query to return rows where all records with a shared column value have a datetime...


phpcodeignitergroup-byaggregate-functionsquery-builder

Read More
Append zero or more related values to a parent row with CodeIgniter's query builder...


phpmysqlcodeigniteraggregate-functionsquery-builder

Read More
How to avoid error "aggregate functions are not allowed in WHERE"...


mysqlsqlaggregate-functions

Read More
postgres jsonb array aggregate functions...


arrayspostgresqlaggregate-functionsjsonb

Read More
How to conditionally COUNT() column values in conjunction with CodeIgniter's group_by()...


phpmysqlcodeigniteraggregate-functionsquery-builder

Read More
Check for intersection between 2 dateranges in Postgres...


sqlpostgresqlaggregate-functions

Read More
BackNext