Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MySQL FINAL CHALLENGE User settings are another example of data that needs to be updated. Users often decide to change their username, password, email accounts,
MySQL
FINAL CHALLENGE
User settings are another example of data that needs to be updated. Users often decide to change their username, password, email accounts, email notification frequency and so on.
Complete the final challenges and evaluate your understanding of the UPDATE, ALTER and RENAME SQL keywords.
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:
+-----------------+---------------------+------+-----+----------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------------+---------------------+------+-----+----------+-------+ | user_id | int(7) | NO | | NULL | | | email_frequency | tinyint(2) unsigned | YES | | 15 | | | layout | varchar(70) | YES | | vertical | | | updated_at | datetime | YES | | NULL | | +-----------------+---------------------+------+-----+--------
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started