Select statement - Compound column data

56 views
Skip to first unread message

Q_developer

unread,
Jun 1, 2012, 5:10:02 AM6/1/12
to personal...@googlegroups.com
Hi ,
I have defined a table pv:([] a:10 20 30; b:(`a`b;`c`d`e;`c))
Now I want to write a select statement to give the column a where each b contains `c.
i.e the result should be
a
-
20
30
 
Thanks in advance
 
Regrds,
Saritha
 
 
 

Kevin Smyth

unread,
Jun 1, 2012, 5:13:20 AM6/1/12
to personal...@googlegroups.com
select a from pv where `c in'b
> --
> You received this message because you are subscribed to the Google Groups
> "Kdb+ Personal Developers" group.
> To post to this group, send email to personal...@googlegroups.com.
> To unsubscribe from this group, send email to
> personal-kdbpl...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/personal-kdbplus?hl=en.

Kim Kuen Tang

unread,
Jun 1, 2012, 5:15:29 AM6/1/12
to personal...@googlegroups.com, personal...@googlegroups.com
select from pv where ('c in) each b

correct the symbol c.

Hth
Kim

Von meinem iPhone gesendet
--

Attila Vrabecz

unread,
Jun 1, 2012, 1:13:58 PM6/1/12
to personal...@googlegroups.com
you can hold down ' to get `

Cheers,
  Attila

Kim Kuen Tang

unread,
Jun 1, 2012, 3:52:31 PM6/1/12
to personal...@googlegroups.com, Attila Vrabecz
Am 01.06.2012 19:13, schrieb Attila Vrabecz:
you can hold down ' to get `

It works on my iphone, thx.

Kim
Reply all
Reply to author
Forward
0 new messages