Complete the code to create a new user profile with a unique username.
Create user profile with username: [1]
The username must be unique to identify the user profile correctly.
Complete the code to update the user's email address in their profile.
Update user profile set email = [1] where username = 'john_doe'
The email field should be updated with a valid email address enclosed in quotes.
Fix the error in the code to delete a user profile by username.
Delete from users where username = [1]
The username value must be enclosed in single quotes to be recognized as a string.
Fill both blanks to filter user profiles created after 2020 and sort by username.
Select * from users where created_date [1] '2020-12-31' order by [2]
The filter uses '>' to get users created after the date, and sorting is done by username.
Fill all three blanks to create a dictionary of usernames and emails for active users.
user_emails = { [1]: [2] for user in users if [3] == True }The dictionary keys are usernames, values are emails, and the filter checks if the user is active using 'user.is_active'.