KX Community

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

Home Forums kdb+ Referencing new column Re: Referencing new column

  • davidcrossey

    Member
    November 16, 2021 at 12:00 am

    Hi powerpeanuts,

    You would need to add your new column first, before trying to use it in the where clause. For example:

    q)t:([] name:`Dent`Beeblebrox`Prefect; iq:98 42 126) 
    
    q)select name, iq2 from (update iq2:iq%100 from t) where iq2>1 name iq2 ------------ Prefect 1.26

    Thanks for posting your question on the KX Community. Great username too!

    Kind regards,

    David