Skip to content

QQL with a new column having constant value #241

Answered by alex-karpovich
ShivaniSK asked this question in Q&A
Discussion options

You must be logged in to vote

please try the following:

(select ('ask' if true) as order_type, ask_price as price from order_book_depth) UNION (select ('bid' if true) as order_type, bid_price as price from order_book_depth)

using 'ask' as order_type - creates static column, which is not supported yet for unions

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ShivaniSK
Comment options

@alex-karpovich
Comment options

Answer selected by alex-karpovich
@alex-karpovich
Comment options

@ShivaniSK
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants