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 actor_role:Table 1: actor(AID varchar(8), name varchar(30), salary numeric(8,2)) AID is the primary keyTable 2: movie (MID varchar(8), title varchar(50)) MID is the primary keyTable 3: actor_role (MID varchar(8), AID varchar(8), rolename varchar(20)) MID and AID together are the primary key AID is a foreign key MID is a foreign key1. Write a sql statement to create a database called movieData. (1 point)2. Write a sql statement to switch to database movieData. 3. Please specify the order of table creation 4. Please specify the order of data population of the tables 5. Write sql statements to create table actor_role. Write queries in SQL for each of the following questions:(Table: actor movie actor_role )6. Find the average salary of actors .7. Find actor Ians AID. 8. Find the names of all actors whose name includes the substring 'au'.9. Find all actors name who has had a role in movies (Remove duplicates).10. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!