How can I select with column of lists

statquant

Say I have a table with a column of lists

q)t:([]x:10?1.;y:10?`a`b`c;z:10#enlist`a`b)
q)t
x          y z  
----------------
0.1627662  b a b
0.6884756  b a b
0.8177547  a a b
0.7520102  b a b
0.1086824  c a b
0.9598964  c a b
0.03668341 a a b
0.6430982  a a b
0.6708738  b a b
0.6789082  a a b

How can I select for rows where y in z ?

kanon

select from t where y in'z

As z is a list of lists, you require an each. The ' acts as each-both. http://code.kx.com/q4m3/6_Functions/#672-each-both for more detail. Beware whitespace. https://groups.google.com/forum/#!forum/personal-kdbplus for more knowledgable advice.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

How can I target a <select> form element by name with CSS?

来自分类Dev

How can I select the item that doesn't have attribute

来自分类Dev

How can I create a SUM of one column within a query in SQL?

来自分类Dev

Laravel - How do I select all where column is equals to x or y or z (and on..)?

来自分类Dev

How can I change the selected text when using Multiple Select jQuery plugin

来自分类Dev

How can I cancel an ngEvent?

来自分类Dev

How can I return a function?

来自分类Dev

Laravel: How get the value of a select (Drop-Down Lists) to bind with the model?

来自分类Dev

Why can I create a table with PRIMARY KEY on a nullable column?

来自分类Dev

<display:column + <html:select

来自分类Dev

How to remove elements of lists in a dictionary of lists?

来自分类Dev

How do I compare two lists as being equal and containing the same objects, in Dart?

来自分类Dev

How do I calculate the delta (inserted/deleted/moved indexes) of two lists?

来自分类Dev

How do I modify my code so that my lists operate as accordions

来自分类Dev

Sorting a list of lists in python alphabetically by "column"

来自分类Dev

Write nested lists column wise to CSV

来自分类Dev

Combine columns in a Pandas DataFrame to a column of lists in a DataFrame

来自分类Dev

How can I create a histogram in R?

来自分类Dev

How can I extract text from images?

来自分类Dev

How can I pipe input to a process?

来自分类Dev

How i can onUpgrade me database in Android

来自分类Dev

How can I check for reference equality in Perl?

来自分类Dev

How can I use the constraints in native webrtc?

来自分类Dev

How can I get the application path in C?

来自分类Dev

How can I have mocha reporter for protractor?

来自分类Dev

How can I create this complicated SQL query?

来自分类Dev

How can I highlight a line in TMemo?

来自分类Dev

How can I archive old git tags?

来自分类Dev

How can I limit the results in a PagingAndSortingRepository @Query?

Related 相关文章

  1. 1

    How can I target a <select> form element by name with CSS?

  2. 2

    How can I select the item that doesn't have attribute

  3. 3

    How can I create a SUM of one column within a query in SQL?

  4. 4

    Laravel - How do I select all where column is equals to x or y or z (and on..)?

  5. 5

    How can I change the selected text when using Multiple Select jQuery plugin

  6. 6

    How can I cancel an ngEvent?

  7. 7

    How can I return a function?

  8. 8

    Laravel: How get the value of a select (Drop-Down Lists) to bind with the model?

  9. 9

    Why can I create a table with PRIMARY KEY on a nullable column?

  10. 10

    <display:column + <html:select

  11. 11

    How to remove elements of lists in a dictionary of lists?

  12. 12

    How do I compare two lists as being equal and containing the same objects, in Dart?

  13. 13

    How do I calculate the delta (inserted/deleted/moved indexes) of two lists?

  14. 14

    How do I modify my code so that my lists operate as accordions

  15. 15

    Sorting a list of lists in python alphabetically by "column"

  16. 16

    Write nested lists column wise to CSV

  17. 17

    Combine columns in a Pandas DataFrame to a column of lists in a DataFrame

  18. 18

    How can I create a histogram in R?

  19. 19

    How can I extract text from images?

  20. 20

    How can I pipe input to a process?

  21. 21

    How i can onUpgrade me database in Android

  22. 22

    How can I check for reference equality in Perl?

  23. 23

    How can I use the constraints in native webrtc?

  24. 24

    How can I get the application path in C?

  25. 25

    How can I have mocha reporter for protractor?

  26. 26

    How can I create this complicated SQL query?

  27. 27

    How can I highlight a line in TMemo?

  28. 28

    How can I archive old git tags?

  29. 29

    How can I limit the results in a PagingAndSortingRepository @Query?

热门标签

归档