Reputation: 319
I have difficulty to construct right query currently i have two Queries
Query 1.
SELECT $TOTAL
LET $CORE = (SELECT FROM SOMETHING_1 WHERE SOMECONDITION_1),
$SOURCE= (SELECT FROM SOMETHING_2 WHERE SOMECONDITION_2),
$TOTAL = UNIONALL($CORE.A , $CORE.B ,$SOURCE.C)
As A Result i receive: [A1, A2 , B1 , B2 ,C1 , C2]
Query 2.
SELECT $CORE.A , $CORE.B ,$SOURCE.C
LET $CORE = (SELECT FROM SOMETHING_1 WHERE SOMECONDITION_1),
$SOURCE= (SELECT FROM SOMETHING_2 WHERE SOMECONDITION_2)
As A Result i receive
**[A1, A2 ],[ B1 , B2] ,[C1 , C2]**
Which query should i need two use if i want to receive following result:
[A1, B1 , C1 ],[ A2 , B2 , C2]
Thanks in advance
Upvotes: 0
Views: 43
Reputation: 2632
Try this:
select expand($c)
LET $a = (select creationTime, modificationTime from SOMETHING_1 where SOMECONDITION_1),
$b = (select columns_mail from SOMETHING_2 where SOMECONDITION_2),
$c = unionall($a,$b)
this is what I get:
Hope it helps
Regards
Upvotes: 3