Custom functions used in Google Sheets for ease of use and improved functionality.
select * from table where fld = ?1
gsSQL(statement, tableArr, columnTitle, …bindings)
=gsSQL("select * from table where fld = ?1", { {"table", "table", 0} }, true, "idData")
select * from table where fld = 'idData'
=gsSQL("select * from table where fld = ?1 and quantity < ?2 and price > ?3", { {"table", "table", 0} }, true, "idData", 10, 3.99)
select * from table where fld = 'idData' and quantity < 10 and price > 3.99
=gsSQL("select * from table where backOrder < ?2 and order > ?2 and fld = ?1", { {"table", "table", 0} }, true, "idData", 10)
=gsSQL("select * from table where date >= ?1 and date <= ?2", { {"table", "table", 0} }, true, startDate, endDate)
=gsSQL("select * from table where date >= ?1 and date <= ?2", { {"table", "table", 0} }, true, A1, A2)
=gsSQL("select * from booksales where date >= ?1 and date <= ?2", , true, startDate, endDate)