function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pavithra GajendraPavithra Gajendra 

Smart SQL

In Hybrid app I want to query from smartstore based on 2 different conditions dynamically. Tired the below, but didn't work for me
var querySpec = navigator.smartstore.buildSmartQuerySpec(""SELECT * FROM {MONTH_OBJECT} WHERE {MONTH_OBJECT:Month} ='"+ month+"'"+ "AND {MONTH__OBJECT:Date} ='"+date+"'", 1);
navigator.smartstore.runSmartQuery(querySpec, function(cursor) { 
});


How to write a smart sql query for more than 1 condition? 
PratikPratik (Salesforce Developers) 
Hi Pavithra,

To include more than one condition, we can use ANDm, OR ,IN keywords in Where clause.
Here are some sample code you will find:
http://www.tutorialspoint.com/sql/sql-and-or-clauses.htm

Thanks,
Pratik