KDB + query - Implement Not like
Asked Answered
E

3

7

I have to use not like operation in KDB + query but do not know how exactly to use it. I am able to use like operator i.e. http://kdbserver:8001/?select from orderDetails where symbol like "X*" this query successfully gives the results.

How to use/implement not like for same query ?

Emory answered 27/10, 2015 at 15:49 Comment(0)
E
12

select from orderDetails where not symbol like "X*"

Enunciation answered 27/10, 2015 at 16:46 Comment(0)
G
0

For selecting the orders which are not like any of the patterns e.g. selecting the orders which are neither X* nor *Z

select from orderDetails where not any symbol like/:("X*";"*Z")
Greenhead answered 6/7, 2018 at 23:17 Comment(0)
L
0

In kdb, select col1, col2 from tabel where cond, cond should be a boolean list. like return a boolean list and not can flip a boolean list

Langlois answered 9/2, 2021 at 21:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.