Question: Below are the table schema for Table actor, movie, and actor _ role:Table 1 : actor ( AID varchar ( 8 ) , name varchar
Below are the table schema for Table actor, movie, and actorrole:Table : actorAID varchar name varchar salary numeric AID is the primary keyTable : movie MID varchar title varchar MID is the primary keyTable : actorrole MID varchar AID varchar rolename varchar MID and AID together are the primary key AID is a foreign key MID is a foreign key Write a sql statement to create a database called movieData. point Write a sql statement to switch to database movieData. Please specify the order of table creation Please specify the order of data population of the tables Write sql statements to create table actorrole. Write queries in SQL for each of the following questions:Table: actor movie actorrole Find the average salary of actors Find actor Ians AID. Find the names of all actors whose name includes the substring au Find all actors name who has had a role in movies Remove duplicates Find the MID of movie 'Life is beautiful'.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
