Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-24943

Add FILTER clause

    XMLWordPrintable

Details

    • Aggregate functions now support the SQL standard FILTER clause, letting you filter which rows are included in an aggregation without writing a CASE expression.
    • Q1/2026 Server Development, Q1/2026 Server Maintenance, Q2/2026 Server Development, Q3/2026 Server Maintenance, Q3/2026 Server Development, Q4/2026 Server Maintenance

    Description

      SQL:2003 introduced the FILTER clause, which extends aggregate functions with a WHERE clause.

      This is supported by PostgreSQL, SQLite and a MySQL extension.

      See https://modern-sql.com/feature/filter#conforming-alternatives for details.

      Attachments

        Issue Links

          Activity

            People

              Khaled.amr Khaled Amr
              greenman Ian Gilfillan
              Votes:
              1 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 3d Original Estimate - 3d
                  3d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 7d 3h 38m
                  7d 3h 38m

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.