-
qSQL questions _ where clause and exec results
Trying to combine two questions in one post as both are qSQL related, apologies if any confusions.
1. Q statement follows right to left, is it also the case when processing multi where conditions? e.g.
select from smalltrade2 where size=first size,sym=`GE
It seems from the notebook Q first read size and then sym in the where clause, so where does not right to left order?
2. below example from the notebook–why only assignment to a symbol would return a keyed table, when the sym itself is already in the table daily?
exec first open, last close by sym from daily where sym like “*L” //not a keyed table, a dictionary
exec first open, last close by sym:sym from daily where sym like “*L” //keyed table – also a dictionary
Thanks,
Log in to reply.