CJCoding With Joseph
15free / daySign inCreate account

The city column in students is really the student's home town, so rename it to home_city. The data stays exactly as it is; only the column's name changes, and every other column is untouched.

Expected result

Table students
✓ id INTEGER PRIMARY KEY
✓ first_name TEXT NOT NULL
✓ last_name TEXT NOT NULL
✓ email TEXT NOT NULL
✓ major_department_id INTEGER
✓ enrollment_year INTEGER NOT NULL
✓ gpa REAL
✓ home_city TEXT
✓ birth_date TEXT
✓ status TEXT NOT NULL DEFAULT 'active'
✓ scholarship_amount REAL
✓ major_department_id REFERENCES departments(id)
✓ UNIQUE (email)
Hints3 available
Topics
ALTER & DROP
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (sel, ins, desc)

Results

Run your SQL to see every statement's output here, then how it compares with the expected answer.

Not sure what is in a table? SHOW TABLES lists them and DESCRIBE students shows the columns, or open the database browser under the question.