KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Keyed Table Mechanics Re: Keyed Table Mechanics

  • pfullen1997

    Member
    March 20, 2022 at 12:00 am

    The values aren’t stored out of order. As the ID column is acting as a foreign key, the corresponding v values to each ID from the kt table are as follows:

    ID          v
    1002        200
    1001        100
    1003        300
    1001        100

    That’s why they appear in the order they do in the select query. Hopefully that’s clear enough.