Guest User

Untitled

a guest
Jun 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Goal:
  2. Create JavaScript functions on Cities data to replicate the equivalent SQL operations on Cities RDBMS (SQLite DB) table.
  3.  
  4. JS File: B1.js
  5. Goal: Get object a from list by property value
  6. SQL: select * from cities where name = 'Chiang Mai'
  7.  
  8. JS File: B1.js
  9. Goal: Get object a from list by property value
  10. SQL: select * from cities where name = 'Chiang Mai'
  11.  
  12. JS File: B2.js
  13. Goal: Filter a List Based on Multiple Predicates
  14. SQL: select * from cities where cost < 1050 and humidity > 40
Add Comment
Please, Sign In to add comment