You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -242,8 +242,6 @@ LIMIT 10;
242
242
243
243
Let's investigate the earnings of these movies.
244
244
245
-
**CHALLENGE:** Can you build a query that shows only the *title*, *year* and *adj_lifetime_gross* columns from the *gross* table?
246
-
247
245
In their current state, the numbers in the *adj_lifetime_gross* column are hard to compare. We can add mathematical operators and numbers to the column name to perform the calculation. Let's calculate the adjusted lifetime gross column in billions of dollars (9 zeros):
248
246
249
247
```
@@ -262,7 +260,7 @@ FROM gross;
262
260
263
261
### Commenting Queries
264
262
265
-
Sometimes we want to be able to write a comment, text that won't be interpreted by the interface as a part of the query. Any text that follows two dashes *--* until the end of the ine is a comment.
263
+
Sometimes we want to be able to write a comment, text that won't be interpreted by the interface as a part of the query. Any text that follows two dashes *--* until the end of the line is a comment.
266
264
267
265
```
268
266
SELECT title, year, adj_lifetime_gross/1000000000 AS gross_billions -- 1 billion has 9 zeros
0 commit comments