MYSQL Assignment
June 3, 2026 1 min read

MYSQL database schema questions

HS
HEMANT SINGH
Technical Writer & Educator

MYSQL database schema questions

  1. Create database(musics) schema with following tables.
    • artists
      • id
      • artistname
    • genres
      • genreid
      • genre
    • albums
      • id
      • albumname
      • data_released
      • artist_id
      • genre_id
  2. Create database(blog) schema with following tables.
    • users
      • id
      • username
      • email
      • password
      • created_at
      • updated_at
    • category
      • id
      • category_name
      • created_at
      • updated_at
    • posts
      • id
      • category_id
      • post_title
      • post_data
      • meta_details
      • user_id
      • created_at
      • updated_at
    • post_likes
      • id
      • post_id
      • user_id
    • post_comments
      • id
      • comment
      • post_id
      • user_id
      • created_at
      • updated_at