Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Build a music recommendation service. You are given a template database with genres, regions, and bands. See attached file. Tasks: ( 9 points ) Create
Build a music recommendation service.
You are given a template database with genres, regions, and bands. See attached file.
Tasks:
points Create db user called api with limited access of read only of initially given tables in the template, and readwriteupdate permissions for all additional tables created for this project in the next steps.
points Create a "User" relation. User needs an ID name, and home country.
points Create a "Favorites" relation. Favorites needs to reference user, and bands.
points Create a query to determine which subgenres come from which regions.
points Create a query to determine what other bands, not currently in their favorites, are of the same subgenres as those which are.
points Create a query to determine what other bands, not currently in their favorites, are of the same genres as those which are.
points Create a query which finds other users who have the same band in their favorites, and list their other favorite bands.
points Create a query to list other countries, excluding the users home country, where they could travel to where they could hear the same genres as the bands in their favorites.
points Add appropriate indexing to all tables and optimize all queries.
points Write an application in the back end language of your choice BE languages only, no JS or Node to access the database using the created user in task # with a function to run each query in tasks with the user ID passed as a parameter where needed.
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