Learn with Abdou

Chapter 10 · Concept 1 of 5 · Practice

A blank still becomes a word of spaces

.import, the staging table, NULLIF(TRIM()) · level 2 of 6

Opening your saved work…

Sign in to save across devices → · Download your guest work before switching accounts.

A blank still becomes a word of spaces · .import, the staging table, NULLIF(TRIM()) · level 2 of 6

The function that turns a blank into NULL

Level 2: Fill the blank · Exercise 1 of 1

Fill in the function that compares the trimmed note with the empty string and returns NULL when they match, so TG-102 and TG-106 come back NULL.

Finish line: 6 rows · columns serial, clean_note · in the order the question gives

Data: Trail Gear: build rehearsal.

Fill the blankOpening the database…
SELECT serial, (TRIM(note), '') AS clean_note FROM stg_items ORDER BY rowid;
  1. Blank 1 of 1: the function that returns NULL when its two arguments are equal
Open in the playground

Query results

Check to see the result here.

Check to see the result here.

Practice here is evidence for you and your instructor, never a grade. Grades live in Canvas.