Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider Ullman and Widoms movie database example: Movies (title, year, length, genre, studioName, producerC#) StarsIn (movieTitle, movieYear, starName) MovieStar (name, address, gender, birthdate) MovieExec (name,

Consider Ullman and Widoms movie database example:

Movies (title, year, length, genre, studioName, producerC#)

StarsIn (movieTitle, movieYear, starName)

MovieStar (name, address, gender, birthdate)

MovieExec (name, address, cert#, netWorth)

Studio (name, address, presC#)

*******************************************************

Write PSM procedures or functions to accomplish the following:

******************************************************

a. Given the name of a movie studio, return the net worth of its president.

b. Given a star name, find the earliest movie of more than 120 minutes length in which they appeared. If there is no such movie, return the year 0.

c. Given the name of a star, delete them from MovieStar and delete all their movies from StarsIn and Movies.

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_2

Step: 3

blur-text-image_3

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

What attracts you about this role?

Answered: 1 week ago

Question

How many states in India?

Answered: 1 week ago

Question

HOW IS MARKETING CHANGING WITH ARTIFITIAL INTELIGENCE

Answered: 1 week ago

Question

Different types of Grading?

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago