11. Final challenges User settings are another example of data that needs to be
ID: 3881468 • Letter: 1
Question
11. Final challenges User settings are another example of data that needs to be updated. Users otten decide to change their username, password, email accounts, email notification frequency and so on ALTER and Complete the final challenges and evaluate your understanding of the RENAME SQL keywords. UPDATE, User settings A mysql>prompt has been opened for you. Complete the following SQL statements (try using dot syntax) 1. Create an App database 2. Use the App database and create a settings table with these features: I Field I user id I layout Type | Null | Key | Default IExtra | NULL 15 I int(7) NOI | email_frequency| tinyint(2) unsigned YES I I varchar (70) I vertical l | YES I | YES I I updated_at | datetime NULL IExplanation / Answer
Create Database App;
use App;
CREATE TABLE settings
(
user_id int(7) NOT NULL,
email_frequency tinyint(2) unsigned NULL DEFAULT '15',
layout varchar(70) NULL DEFAULT 'vertical',
updated_at datetime NULL
);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.