QuestDB
EnterpriseCustomersDocsBlog
8.3.1
  • Roadmap
Download
  • Introduction
  • Quick start
  • Why QuestDB?
  • Schema Design Essentials
  • Migrate from InfluxDB
  • Ingestion Reference
  • Query & SQL Reference
    • Query & SQL Overview
    • Data types
    • SQL execution order
    • SQL Syntax
      • ADD USER
      • ALTER
      • ASSUME SERVICE ACCOUNT
      • CANCEL QUERY
      • CHECKPOINT
      • COPY
      • CREATE
      • DROP
      • EXPLAIN
      • EXIT SERVICE ACCOUNT
      • GRANT
      • INSERT
      • REFRESH MATERIALIZED VIEW
      • REINDEX
      • RENAME TABLE
      • REMOVE USER
      • REVOKE
      • SELECT
        • SELECT OVERVIEW
        • ASOF JOIN
        • CASE
        • CAST
        • DECLARE
        • DISTINCT
        • FILL
        • GROUP BY
        • JOIN
        • LATEST ON
        • LIMIT
        • ORDER BY
        • OVER
        • SAMPLE BY
        • WHERE
        • WITH
      • SHOW
      • SNAPSHOT
      • TRUNCATE TABLE
      • UNION EXCEPT INTERSECT
      • UPDATE
      • VACUUM TABLE
    • Functions
    • Operators
  • Deployment
  • Operations
  • Guides & Tutorials
  • Concepts
  • Third-party Tools
  • Troubleshooting
  • Query & SQL Reference
  • 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