Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider two relation instances below, with the given Schemas For EACH question (query) below: 1. Write a Relational Algebra Expression, and Show its results, Also

image text in transcribed

Consider two relation instances below, with the given Schemas For EACH question (query) below: 1. Write a Relational Algebra Expression, and Show its results, Also 3. Write the DML that the Oracle would return the same results when being executed (NO need to write DDL, just translate your Relational Algebra expression into DML) Performers (name, genre) Grammy Nominations (name, category, year, is winner) Performers Grammy Nominations name Arizona Shakes Arizona Shakes Frank Ocean Frank Ocean Coldplay year is_winner category New Artist Rock Performance Album of the Year Rap/Sung Collaboration name Rock Amy Winehouse R&B Rock R&B The Black Keys Rock 2013 2013 2013 2013 2013 2009 2009 2012 2013 no no no Arizona Shakes Frank Ocean no Rock Album Album of the Year Rock Performance Rock Performance no no The Black Keys Tips: There are many useful operators for relational algebra, include but not limited to, for example: , , X, A, p, U n, and (use correct symbol and syntax of these operations when writing the expression). It is always very helpful to first break a long query into smaller pieces to be expressed in the relational algebra, and then build up them all in appropriate order indicated by parenthesis to get your ultimate expression. (3a) (20 points) List the nominee's name(s) that belong to the category of 'Album of the Year. Tips: Select all the tuples in the table Grammy_Nominations that belong to the category of 'Album of the Year, and then extract only the name from there (3b) (25 points) List the genres of all Grammy winner in 2013 Tips: information of genre, year and whether a performer is a winner, are in different tables

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions