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 6 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 6 of 6

Phones from a hiring file

Level 6: Transfer it · Exercise 1 of 1

Same idea as A blank still becomes a word of spaces, new data.

Northshore Coffee's Tofte and Beaver Bay shops sent their new hires as a CSV, staged in stg_new_hires with every column as text. The hiring dictionary says a blank phone means not given yet. Return first_name, last_name and clean_phone for all six staged hires, in file order, where clean_phone is the phone without its outside spaces and NULL when nothing is left.

Finish line: 6 rows · columns first_name, last_name, clean_phone · in the order the question gives

Data: Northshore Coffee.

Opening the database…
Table & column names only · ↑ ↓ choose · Tab insert · Esc dismiss

CURRENT DATABASE

Quick schema · Northshore Coffee

Press Esc or click outside to return to your query. PK = primary key · FK = declared foreign key.

This database has no tables yet. Create a table, then reopen the schema to see its columns.

Control Space also opens names. Enter adds a new line. Control or Command Enter runs your query.
Open in the playground

Query results

Run your query to see the result here.

Run your query to see the result here.

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