I have a table and passed it into a function where I use the primary ID to generate a column of characters.
However, there are a few areas in this newly-created column where instead of characters it's an empty list: ()
When I check for type, the characters and empty lists are all listed as type 10h.
I'm trying to create a select statement that gets the primary IDs and this column for only those whose values are ().
I tried these, but they all gave me 'length errors:
select ID, Names from x where Sedol = ();
select ID, Names from x where Sedol = "()";
select ID, Names from x where type Sedol = 10h;
select ID, Names from x where type Sedol = 0h;
Would be curious to see if any of you have any insight into this? Is it possible to even select by type within a column?
Sample table:
Search for
0htype:eachis used to test each row https://code.kx.com/q/ref/maps/#eachSearch for exactly
():~is match https://code.kx.com/q/ref/match/\:is each-left https://code.kx.com/q/ref/maps/#each-left-and-each-right