-
Notifications
You must be signed in to change notification settings - Fork 664
Subqueries
Andrey Gershun edited this page Apr 14, 2015
·
1 revision
You can use SELECT operator as a part of SQL expressions, like:
var res = alasql('SELECT * FROM phases q WHERE (SELECT COUNT(*) \
FROM phases t WHERE t.Phase = q.Phase) = 2');
AlaSQL converts array to single value (like VALUE modifier does) before usage in expression.
See working example in jsFiddle
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo