SQL End Term Question
SQL End Term Question
Question 1 :
o username (varchar),
o email (varchar),
o password_hash (varchar),
o signup_date (timestamp),
o country (varchar).
title (varchar),
description (text),
genre (varchar),
release_date (date),
rating (decimal),
content_type (varchar).
Question 3 : Write SQL queries to:
Question 8 :
CREATE TABLE:
Question 9 :
CREATE TABLE User_activity .
The table has the following columns:
o activity_id: An integer column.
o user_id: An integer column.
o activity_type: A varchar column to store the type of activity (e.g., 'Post', 'Comment', 'Like',
'Share').
o content: A text column to store the content of the activity.
o post_date: A timestamp column to store the date and time of the post.