HNHacker News
TopNewBestAskShowJobs

ldb

35 karma · joined January 28, 2019

submissionscomments
ldb··on We Can Do Better Than SQL
Good explanation! (which indicates why the handling of empty sets is sometimes a bit confusing)

One more question: What was the motivation behind defining "sum({})" to be "0" rather then "{}" ?

ldb··on We Can Do Better Than SQL
Thanks, that was helpful. However, I still think that having "sum(1,1,{})" returning "2" and "1+1+{}" returning "{}" can be viewed as somewhat inconsistent.
ldb··on We Can Do Better Than SQL
I am still a bit unclear about this. Assume we have three actor records where two records have age=30 and for the remaining one the age is not set. From what I understand then "SELECT sum(age) FROM Actor;" returns "60" while "SELECT 30 + 30 + {}" returns "{}". This appears to be an inconsistent handling of empty sets (thought it would be the same as in SQL).
ldb··on We Can Do Better Than SQL
Assume I have a table "Actors" with a column "age" and for some of the records the age is not set (an empty set). Does this mean that "SELECT SUM(age) FROM Actors;" gives "{}" or do you implement a special logic for empty-set summation when used in connection with aggregation (like SQL does)?
ldb··on We Can Do Better Than SQL
> any element-wise operation on an empty set is, likewise, an empty set

Does this mean that "SELECT 1 + {}" gives "{}"?

ldb··on We Can Do Better Than SQL
How do I test for empty set? If I understand correctly then "SELECT * FROM Movies WHERE description = {};" will not work, right?
ldb··on Show HN: Convert walkthroughs to working programs
I like the idea. Reminds me of the Eve language/IDE (www.witheve.com).
ldb··on Website looks like classic old-school macOS
Very nice work! Love the Mac Classic look :-)
← PreviousPage 2 of 2