Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following schema to solve problems 6-13 and give the answer for each problem below. Use the SQL JOIN syntax where appropriate. Make sure
Consider the following schema to solve problems 6-13 and give the answer for each problem below. Use the SQL JOIN syntax where appropriate. Make sure you show a screenshot of the terminal that displays both the SQL Query and the results of the command. Do not copy and pasted the text from the terminal as your answer. You will receive a 0 for problems that are copied-and-pasted text. Table 1: Movie Database Table ACTOR MOVIE DIRECTORS CASTS MOVIE_DIRECTORS GENRE Schema (aid, fname, Iname, gender) (mid, name, year) (did, fname, Iname) (aid, mid, role) (did, mid) (mid, genre) 6. Write SQL DDL corresponding to the schema in Figure 1. All id fields, i.e. aid, mid, and did, are integers. The movie year is a number having four digits. All other fields are character strings. People's names have a maximum of 30 characters, roles and genres have a maximum of 50, and movie titles have a maximum of 150 characters. The gender field is one single character long
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started