FIND YOUR NEXT FEW LINES
Results for “categories”
Small, practical examples. Search by task or narrow things down below.
6 snippets foundClear filters
List distinct values
Remove duplicate category values from a result.
DISTINCT✓ Tested
Calculate a total for each group
SQL: Group nonmissing categories and calculate separate totals.
SQL✓ Tested
Calculate a total for each group
SQL Server: Group nonmissing categories and calculate separate totals.
SQL Server✓ Tested
Calculate a total for each group
Postgres: Group nonmissing categories and calculate separate totals.
Postgres✓ Tested
Calculate a total for each group
SQLite: Group nonmissing categories and calculate separate totals.
SQLite✓ Tested
Filter aggregate groups
Keep only categories with multiple products.
HAVING✓ Tested