KX Community

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

Home Forums kdb+ Clean way to do conditional statement in SQL?

  • Clean way to do conditional statement in SQL?

    Posted by ekallivrousis on December 8, 2021 at 12:00 am

    I was wondering what the best way to do conditional update in q? I know i can do the below but wondering if theres a shorter/cleaner way.

    t:flip `a`b!(1 2;01b) update c:{$[x;`true;`false]} each b from t

     

     

     

    ekallivrousis replied 9 months, 1 week ago 3 Members · 3 Replies
  • 3 Replies

Log in to reply.