KX Community

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

Home Forums kdb+ Linking vector columns Re: Linking vector columns

  • rocuinneagain

    Member
    June 30, 2022 at 12:00 am

    iasc gives you the sorted idexes which you can use

    q)update sVec:sVec(@)'iasc each sNum,asc each sNum from tbl 
    sVec sNum 
    ----------- 
    a b c 1 2 3 
    a b c 1 2 3 
    a b c 1 2 3