google-developer-training / android-basics-kotlin-sql-basics-app

Fundamentals of relational databases and practice running SQL queries with Database Inspector in Android Studio.
Apache License 2.0
62 stars 127 forks source link

Android Basics: SQL Basics #4

Closed hamersun closed 3 years ago

hamersun commented 3 years ago

In section 5 (Common SQL functions) below the SQL command

SELECT SUM(park_visitors) FROM park
WHERE type = "national_park"

There is a typo in the description "It's worth noting that you can still use SUM()...". It should be nothing.

paladaxar commented 3 years ago

I think this line is actually correct.

The phrase "it's worth noting..." is an expression that means "it's worth mentioning..." which is what the author was trying to imply I believe. Now if you're talking about a null value being "worth nothing", then you're (pretty much) right :)

hamersun commented 3 years ago

@paladaxar you are right. It is my misunderstanding.