About 82,800 results
Open links in new tab
  1. How to avoid error "aggregate functions are not allowed in WHERE"

    Jan 8, 2014 · This sql code throws an aggregate functions are not allowed in WHERE SELECT o.ID , count (p.CAT) FROM Orders o INNER JOIN Products p ON o.P_ID = p.P_ID WHERE count (p.CAT) …

  2. SQL GROUP BY CASE statement with aggregate function

    SQL GROUP BY CASE statement with aggregate function Asked 16 years, 4 months ago Modified 2 years, 5 months ago Viewed 344k times

  3. Aggregate function in SQL WHERE-Clause - Stack Overflow

    May 13, 2014 · In a test at university there was a question; is it possible to use an aggregate function in the SQL WHERE clause. I always thought this isn't possible and I also can't find any example how it …

  4. Why are aggregate functions not allowed in where clause

    34 Why can't we use aggregate function in where clause Aggregate functions work on sets of data. A WHERE clause doesn't have access to entire set, but only to the row that it is currently working on. …

  5. sql - Applying the MIN aggregate function to a BIT field - Stack Overflow

    Also, I always run into this sort of issue when I'm forced to aggregate a field that I know (due to constraints) will always be the same value, so why can't there just be an aggregate function FIRST () …

  6. sql - TSQL Pivot without aggregate function - Stack Overflow

    sql parameterised cte query The answer to that question involves a situation where pivot without aggregation is needed so an example of doing it is part of the solution.

  7. How do I select columns together with aggregate functions?

    Jun 23, 2012 · How do I select columns together with aggregate functions? Asked 13 years, 5 months ago Modified 13 years, 5 months ago Viewed 44k times

  8. Multiplication aggregate operator in SQL - Stack Overflow

    Dec 28, 2018 · In SQL there are aggregation operators, like AVG, SUM, COUNT. Why doesn't it have an operator for multiplication? "MUL" or something. I was wondering, does it exist for Oracle, …

  9. sql - Optimal way to concatenate/aggregate strings - Stack Overflow

    I'm finding a way to aggregate strings from different rows into a single row. I'm looking to do this in many different places, so having a function to facilitate this would be nice. I've tried solu...

  10. sql - How to aggregate boolean column - Stack Overflow

    Jun 21, 2016 · Mysql / Mariadb also have BIT_AND and BIT_OR aggregate functions which you can apply to columns of boolean values. Postgres has BOOL_AND and BOOL_OR. I think it would give …