KX Community

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

Home Forums kdb+ how does the query below work Re: how does the query below work

  • chan_chenyanj

    Member
    April 21, 2022 at 12:00 am

    i am missing the `  before the x1,

    update originalId:{x1:y x;$[ `=x1;x;.z.s[x1;y]]} [; Id!PrevId] each Id from table`

    so basically if prev id is empty then stop iterating. How will that work i assume at each id it only has one map id!prev how will it iterate through to find the ultimate id?