Question: 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

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):

Create an App database

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!