Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer this please consider the following relational model CREATE TABLE Movies ( MID int Primary key, Title varchar(20), Released int ); CREATE TABLE Person(

Please answer this please

consider the following relational model CREATE TABLE Movies ( MID int Primary key, Title varchar(20), Released int ); CREATE TABLE Person( PID

Answer all the following SQL queries (you could not use a database to do that)

1) select DISTINCT pp.mid, pp.pid from movies m, person p, Participate pp, Roles r where pp.pid = p.pid and r.rid

2) select DISTINCT pp.mid, count(*) from movies m, Participate pp where m.mid = pp.mid group by pp.mid

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

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions