by travem · 2y ago · 0 comments
When I am authoring SQL, I find the declarative and relational concepts extremely powerful and well suited to the problem I am solving.
Changing SQL to a description of how you'll get the data would make a query incomprehensible to me.
SELECT age FROM Customers WHERE Country='Mexico'
Could be written something like: table.customers.filter(c=>c.country == "Mexico").age
The filter is kinda ugly, there is this strange assumption there to be only one Mexico in country.Clearly the most advanced approach is this:
//customer[country="mexico"]/age
1999!