Eine Einführung in
|
| SQLite | ||
ProblemWe want to filter the results returned based on an aggregate function such as COUNT or SUM. The WHERE clause may not be used for this. The WHERE conditions are considered before the aggregation. Solutions
SELECT winner FROM nobel GROUP BY winner HAVING COUNT(winner)>1 | ||
| Specific to SQLite | ||
| none | ||
| DB2 | ||
ProblemWe want to filter the results returned based on an aggregate function such as COUNT or SUM. The WHERE clause may not be used for this. The WHERE conditions are considered before the aggregation. Solutions
SELECT winner FROM nobel GROUP BY winner HAVING COUNT(winner)>1 | ||
| Specific to DB2 | ||
| none | ||
| MS Access | ||
ProblemWe want to filter the results returned based on an aggregate function such as COUNT or SUM. The WHERE clause may not be used for this. The WHERE conditions are considered before the aggregation. Solutions
SELECT winner FROM nobel GROUP BY winner HAVING COUNT(winner)>1 | ||
| Specific to MS Access | ||
| none | ||
| PostgreSQL | ||
ProblemWe want to filter the results returned based on an aggregate function such as COUNT or SUM. The WHERE clause may not be used for this. The WHERE conditions are considered before the aggregation. Solutions
SELECT winner FROM nobel GROUP BY winner HAVING COUNT(winner)>1 | ||
| Specific to PostgreSQL | ||
| none | ||
| Oracle | ||
ProblemWe want to filter the results returned based on an aggregate function such as COUNT or SUM. The WHERE clause may not be used for this. The WHERE conditions are considered before the aggregation. Solutions
SELECT winner FROM nobel GROUP BY winner HAVING COUNT(winner)>1 | ||
| Specific to Oracle | ||
| none | ||
| MS SQL Server | ||
ProblemWe want to filter the results returned based on an aggregate function such as COUNT or SUM. The WHERE clause may not be used for this. The WHERE conditions are considered before the aggregation. Solutions
SELECT winner FROM nobel GROUP BY winner HAVING COUNT(winner)>1 | ||
| Specific to MS SQL Server | ||
| none | ||
| MySQL | ||
ProblemWe want to filter the results returned based on an aggregate function such as COUNT or SUM. The WHERE clause may not be used for this. The WHERE conditions are considered before the aggregation. Solutions
SELECT winner FROM nobel GROUP BY winner HAVING COUNT(winner)>1 | ||
| Specific to MySQL | ||
In MySQL on LINUX the table names are case sensitive. This means that the table bbc exists but Bbc gives an error. This is a deviation from the SQL standard.
| ||
| Sybase | ||
ProblemWe want to filter the results returned based on an aggregate function such as COUNT or SUM. The WHERE clause may not be used for this. The WHERE conditions are considered before the aggregation. Solutions
SELECT winner FROM nobel GROUP BY winner HAVING COUNT(winner)>1 | ||
| Specific to Sybase | ||
| none | ||
| Mimer SQL | ||
ProblemWe want to filter the results returned based on an aggregate function such as COUNT or SUM. The WHERE clause may not be used for this. The WHERE conditions are considered before the aggregation. Solutions
SELECT winner FROM nobel GROUP BY winner HAVING COUNT(winner)>1 | ||
| Specific to Mimer SQL | ||
| none | ||