1. Given the following schema, write SQL statements that would achieve the following goals (test them on Oracle)Movies (title, year, length, genre, academy_award, studioName, directorName)StarsIn (movieTitle, movieYear, starName)Director (name, birthdate, nationality)MovieStar (name, birthdate, address, gender)Studio (name, address)(Attributes with Italic font are foreign keys)1) Create these tables using appropriate data types, with following constraints:a) The length cannot be less than 30 minutes or more than 480 minutesb) The year must be 1929 or laterc) The only allowable genres are drama, comedy, sciFi, romance, and vampired) No studios can have the same address2) Insert data into those tables (at least 3 tuples in each table). Provide SQL insert statements with an appropriate execution order. (paste screenshots into your report file)
Recent Posts
- Transpose and Associative Property [1pt] Define matrix B = bbT , whereb ? R d×1 is a column vector that is not all-zero. Show that for any vector x ? R d×1 , x T Bx = 0. Math Algebra
- Image transcription textQuestion 1 What is the frequency of the Aa genotype? O 0.90 O 0.09 O 0.18… Show more Science Biology
- Define the Defense Contract Management Agency’s and Defense Contract Audit Agency’s role.Describe how a Defense Contract Audit Agency audit report can help meet a negotiation objective. within the last five years, defense contract audit report and what was the reasons for the audit, the findings an
- Business Accounting Week 3 – PowerPoint & Quiz_ Chapter 5_ ACC205_ Principles of Accounting I (BAG1744A).pdf
- Image transcription textQUESTION 31 Which of the following chart types requires at date field? line chart O a. bar chart O b. pie chartOC scatter plot O d…. Show more Engineering & Technology