UNION and UNION ALL only gives data from first table when source are HTML tables while rows from the second table are empty.
Please see the issue in action at: http://jsfiddle.net/yp83t1p9/
The problem is illustrated here where the last "rows" are empty:
[
{
"ID": "ID",
"Name": "Name",
"Month": "Month",
"Savings": "Savings"
},
{
"ID": "111",
"Name": "John",
"Month": "January",
"Savings": "$100"
},
{
"ID": "122",
"Name": "Rianna",
"Month": "Feb",
"Savings": "$200"
},
{
"ID": "133",
"Name": "Michael",
"Month": "Mar",
"Savings": "$300"
},
{},
{},
{},
{}
]
Took me ages to understand this was a bug! :(
Same result here, see http://jsfiddle.net/L8471bnk/116/ and
http://stackoverflow.com/questions/35894671/alasql-union-or-union-all-only-gives-results-from-table1
Sorry to hear you spend a lot of time because of this bug.
Thanks for adding material to the case.
+1
+1
Hi!
It seems that the issue is still present. The query provided on the stackoverflow by @agershun below does not unite the results and we get only partial result.
Could you please shed the light to the issue?maybe the SEARCH query approach has been changed or something else?
Most helpful comment
+1