q lang - How to apply max function for each row in KDB? -


i want ensure values in column x no smaller 0.5, do:

update x:max (x 0.5) mytable 

but gives error (in studio kdb+):

an error occurred during execution of query. server sent response: type studio hint: possibly error refers wrong type, e.g `a+1 

what's wrong?

you can try using |

q)update x|0.5 mytable 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -