KX Community

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

Home Forums kdb+ how to understand the code below Re: how to understand the code below

  • leahs

    Member
    April 19, 2022 at 12:00 am

    Hello @chan_chenyanj,

    As we discussed previously regarding ‘1’, including ‘each’ here will return a rank error given that ‘iasc’ accepts a list as its argument and `3Y`5Y is a simple symbol list.

    To elaborate on ‘2’, I believe you want to query an updated table created after running ‘1’, i.e., assign ‘1’ (without each)

    ‘2’ logic is erroneous. `@ needs to be replaced with ‘@. To explain the logic, it is determining whether or not the new columns have a null symbol, and if it does, then delete from the table.

     

    Happy Coding,

    Leah