Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a query in SQL to create table BoxOffice while identifying the following: * Column names and each column domain/type * primary key constraints
Write a query in SQL to create table BoxOffice while identifying the following: * Column names and each column domain/type * primary key constraints * foreign key constraints * Rating to be NOT NULL Consider the following table: Movies with primary key id: BoxOffice with primary key Movie_id, and foreign key also Movie_id (referencing Movies of question 1 given before). BoxOffice Movie_id 5 14 8 00 12 3 6 Rating 8.2 7.4 8 6.4 7.9 8 Domestic_sales 380843261 268492764 206445654 191452396 245852179 261441092 International_sales 555900000 475066843 417277164 368400000 239163000 370001000
Step by Step Solution
★★★★★
3.40 Rating (163 Votes )
There are 3 Steps involved in it
Step: 1
In this query Movieid is defined as an integer and set as the pr...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