alasql


running two queries and then joining the results alasql promise notation


I currently can use the following promise notation as in wiki..
alasql.promise('SELECT * FROM XLS("mydata.xls") WHERE lastname LIKE "A%" and city = "London" GROUP BY name ')
.then(function(res){
console.log(res); // output depends on mydata.xls
}).catch(function(err){
console.log('Does the file exists? there was an error:', err);
});
What I need to do is run two queries and then merge the result data using custom js..
I could initialise two arrays before running the query and inside then block copy the query result to the array but is this the right way to handle such a situation.
Any help is sincerely appreciated.

Related Links

how to change font as bold in excel file using alasql?
AlaSQL can you use DISTINCT with SEARCH
Can one use CSV as an in-memory database with alasql?
Export the data to excel & formatting that as requirements
determining what array elements were removed
return alasql informational results
INSERT/UPDATE existing object?
How to insert data in google spreadsheet with tabletop?
How can I export to excel using alaql to multiple sheets AND have different display options for each sheet
AlaSQL saved database location
running two queries and then joining the results alasql promise notation
parent and child key in alasql rollup functions
Alasql select in arrary of array with uknown index
Alasql Best Practices
Alasql - Having columns with sub-columns
AlaSQL: Getting where opperands

Categories

HOME
virtual-machine
crash
browser-cache
travis-ci-cli
liquidsoap
doctrine2
facebook-sharer
unreal-engine4
background-image
jsfiddle
bookmarklet
css-float
aiml
ajaxcontroltoolkit
rndis
email-client
ps
poisson
ckeditor4.x
scalatest
sasl
cloudformation
uibarbuttonitem
sphinx4
semantic-ui-react
paper-trail-gem
textview
ios-autolayout
flickr
openvms
android-geofence
flex3
abide
realloc
client-server
jslider
compiled-query
niagara-ax
lucee
dcom
beanshell
fluent-nhibernate-mapping
playframework-2.3
sp
xamarin-test-cloud
vertex-shader
sqlproj
gevent
scikit-image
mongodb-3.3
universe
class-design
key-value-store
sqlxml
hana-sql-script
wordpress-plugin
fadein
markerspiderfier
producer-consumer
webservices-client
biginsights
musicbrainz
pushwoosh
callfire
eggplant
vspackage
indices
esri-arc-engine
nsq
method-overloading
iwork
nativequery
maven-javadoc-plugin
randomaccessfile
grape-api
cab
removeall
windows-scheduler
magicsuggest
rbm
shapado
reflexil
unordered-set
virtual-printer
peoplepicker
sipdroid
cpack
quazip
arraycollection
helios
web-widget
morfik
opengl-to-opengles
onresize
high-load
asp.net-1.1

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile