on 2014 Sep 04 10:24 AM
tradedate,sysmbol,clientid 20140902,MSFT,DCA 20140902,MSFT,BVX
change to
tradedate,symbol,clientID 20140902,MSFT,DCA|BVX
Request clarification before answering.
You can easily do this using a GROUP BY query and the LIST() operator.
Example.
SELECT tradedate, symbol, list( clientid, '|' )
FROM T
GROUP BY tradedate, symbol;
HTH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks This works.
I have another question T (table) in my case is really a query (subquery in this case). Even though the subquery only returns 50 records and it is fast when I run it alone, but very slow when I use it as subquery using the above example. is there a way I can use a hint to ask IQ to get the result for subquery first and then do the Group by?
User | Count |
---|---|
74 | |
30 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.