learnkdb
DocsQuestionsMock Interview⚡ Rapid Quiz
Sign inBook an interview

Getting Started

  • Getting Started with kdb+/q

Core Concepts

  • Types
  • q Terminology
  • Operations on Lists (Iterators & Amend)
  • Dictionaries
  • In Memory Tables
  • Functions
  • Attributes
  • Iterators
  • Interprocess Communication (IPC)
  • Memory Management & Memory Mapping
  • Persisting Tables

Data Analysis

  • qSQL
    Select
    Grouping & AggregationPractice Questions (9)
    Update
    Delete
    Exec
    Functional Form
  • Joins

System Features

  • File Parsing
  • Serialization
Back to qSQL

qSQL

Grouping & Aggregation

Skip to 9 practice questions

Practice questions on the by clause, fby for group-level filtering without collapsing rows, and xbar for time-bucketed aggregation.

Practice Questions

Test your understanding with 9 hands-on questions

01Count Rows by Group02xbar: Count Rows in Time Buckets03fby: Find the Highest Price for Each Symbol Using fby04fby: Select First,Last and Second Last Rows by Group05Find the Symbol With the Most Appearances06Count Rows per Symbol with a Filter07Select the Maximum-Price Row per Symbol08Select the Last N Rows per Symbol09Count Rows per 15-Minute Bucket, per Symbol
JL

Ready to test yourself?

Book a 60-minute mock kdb+/q interview with Jeremy Lucid, with feedback on what to work on next.

Book an interview
PreviousSelectNextUpdate
learnkdb

Free, step-by-step kdb+/q learning material, from core data structures to qSQL, joins and IPC.

Content

  • Documentation
  • Practice Questions
  • Rapid Quiz

Mock interviews

  • Book an interview
  • Contact & terms
  • Privacy
  • Jeremy Lucid on LinkedIn

Account

  • Sign in
  • Dashboard

© 2026 learnkdb.com. All rights reserved.

kdb+ and q are trademarks of Kx Systems, Inc.