Learn with Abdou

Lesson 16 · Turn the ERD into CREATE TABLE

Translate a requirement into a constraint

Task 1 of 2 · Disposable schema practice · 0 results checked · 0 explanations saved

Opening your saved work…

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

Opening database…

Each run starts with a fresh disposable database. Include CREATE statements and test inserts together when experimenting. Check result expects your table definitions without added test rows.

Table & column names only · ↑ ↓ choose · Tab insert · Esc dismiss

CURRENT DATABASE

Quick schema · Disposable design practice

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.

Query results

Run your query to see the result here.

Run your query to see the result here.

Explain your evidence

Why can phone be NULL while email cannot? What does UNIQUE add beyond NOT NULL?

Your instructor can review account-saved work and help requests. Saving does not submit to Canvas.