QuestDB LogoQuestDB Logo
Return to QuestDB.comDocumentationTutorialsBlogEnterprisePublic SlackDiscourse CommunityView QuestDB Repo
⚡️ QuestDB Enterprise
9.2.3|16.5k
  • Release Notes
  • Roadmap
  • Getting Started
    • Introduction
    • Quick start
    • Why QuestDB?
    • Schema Design Essentials
    • Capacity planning
    • Create a sample database
    • Upgrade to Enterprise
    • Enterprise Quick Start
    • Web Console
  • Connect & Ingest
  • Query Data
    • Query & SQL Overview
    • Data Types
      • Overview
      • N-Dim array
      • Decimal
      • Geospatial data
    • SQL execution order
    • SQL Syntax
      • ADD USER
      • ALTER
      • ASSUME SERVICE ACCOUNT
      • CANCEL QUERY
      • CHECKPOINT
      • COMPILE VIEW
      • COPY
      • CREATE
      • DROP
      • EXIT SERVICE ACCOUNT
      • EXPLAIN
      • GRANT
      • INSERT
      • REFRESH MATERIALIZED VIEW
      • REINDEX
      • REMOVE USER
      • RENAME TABLE
      • REVOKE
      • SELECT
        • SELECT OVERVIEW
        • ASOF JOIN
        • CASE
        • CAST
        • DECLARE
        • DISTINCT
        • FILL
        • GROUP BY
        • JOIN
        • WINDOW JOIN
        • LATEST ON
        • LIMIT
        • ORDER BY
        • OVER
        • SAMPLE BY
        • WHERE
        • WITH
      • SHOW
      • SNAPSHOT
      • TRUNCATE TABLE
      • UNION EXCEPT INTERSECT
      • UPDATE
      • VACUUM TABLE
    • Functions
    • Operators
  • Concepts
  • Architecture
  • Configuration
  • Security
  • High Availability
  • Operations
  • Deployment
  • Integrations
  • Tutorials
  • Troubleshooting
  • Release Notes
  • Query Data
  • SQL Syntax
  • SELECT
  • FILL

FILL keyword

Queries using a SAMPLE BY aggregate on data which has missing records may return a discontinuous series of results. The FILL keyword allows for specifying a fill behavior for results which have missing aggregates due to missing rows.

Details for the FILL keyword can be found on the SAMPLE BY page.

To specify a default handling for null values within queries, see the coalesce() function documentation.

Edit this page
Previous
DISTINCT
Next
GROUP BY

Need a hand? Join our vibrant public Slack and Discourse forum communities.

Copyright © 2025 QuestDB
PrivacyTerms