Answer the following questions, depending on the attached tables: Table: Boxoffice Table: Movies Movie_id Rating Domestic_sales International_sales Id Title Director Year Length_minutes Toy Story A Bug's Life Toy Story 2 8.2 380843261 555900000 1 John Lasseter 1995 81 14 7.4 268492764 475066843 John Lasseter 1998 95 8 8 206445654 417277164 3 John Lasseter 1999 93 12 6.4 191452396 368400000 4 Monsters, Inc. Pete Docter 2001 92 Finding Nemo The Incredibles 3 7.9 245852179 239163000 5 Andrew Stanton 2003 107 261441092 370001000 Brad Bird 2004 116 9. 8.5 223808164 297503696 7 Cars John Lasseter 2006 117 11 8.4 415004880 648167031 8 Ratatouille Brad Bird 2007 115 1 8.3 191796233 170162503 9 WALL-E Andrew Stanton 2008 104 10 11 7 7.2 244082982 217900167 Up Toy Story 3 Pete Docter 2009 101 10 8.3 293004164 438338580 Lee Unkrich 2010 103 4 8.1 289916256 272900000 12 Cars 2 John Lasseter 2011 120 13 14 Monsters University Brenda Chapman 2012 2013 7.2 162798565 200600000 Brave 102 13 7.2 237283207 301700000 Dan Scanlon 110 a) Create PROCEDURE to print the domestic and international sales with YEAR for each movie and test it (Write a program where you use this procedure and show the results). Title – Year - Domestic Sales - International Sales b) Create FUNCTION to return the number of movies that length more than 100 minutes using IF and test it (Write a program where you use this function and show the results). c) Create FUNCTION to return the longest movie in Movies table and test it (Write a program where you use this function and show the results).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I need answer fast sql Oracle with screenshoot

Answer the following questions, depending on the attached tables:
Table: Boxoffice
Table: Movies
Movie_id
Rating Domestic_sales
International_sales
ld
Title
Director
Year
Length_minutes
Toy Story
A Bug's Life
Toy Story 2
8.2
380843261
555900000
1
John Lasseter
1995
81
14
7.4
268492764
475066843
2
John Lasseter
1998
95
8.
8
206445654
417277164
3
John Lasseter
1999
93
12
6.4
191452396
368400000
4
Monsters, Inc.
Pete Docter
2001
92
7.9
245852179
239163000
Finding Nemo
Andrew Stanton 2003
107
8
261441092
370001000
The Incredibles
Brad Bird
2004
116
9.
8.5
223808164
297503696
7
Cars
John Lasseter
2006
117
2007
Andrew Stanton 2008
11
8.4
415004880
648167031
8
Ratatouille
Brad Bird
115
1
8.3
191796233
170162503
9.
WALL-E
104
7
7.2
244082982
217900167
10
Up
Pete Docter
2009
101
10
8.3
293004164
438338580
11
Toy Story 3
Lee Unkrich
2010
103
4
8.1
289916256
272900000
12
Cars 2
John Lasseter
2011
120
13
Brenda Chapman 2012
2013
7.2
162798565
200600000
Brave
102
13
7.2
237283207
301700000
14 Monsters University
Dan Scanlon
110
a) Create PROCEDURE to print the domestic and international sales with YEAR for each
movie and test it (Write a program where you use this procedure and show the results).
Title – Year - Domestic Sales - International Sales
b) Create FUNCTION to return the number of movies that length more than 100 minutes
using IF and test it (Write a program where you use this function and show the results).
c) Create FUNCTION to return the longest movie in Movies table and test it (Write a
program where you use this function and show the results).
Transcribed Image Text:Answer the following questions, depending on the attached tables: Table: Boxoffice Table: Movies Movie_id Rating Domestic_sales International_sales ld Title Director Year Length_minutes Toy Story A Bug's Life Toy Story 2 8.2 380843261 555900000 1 John Lasseter 1995 81 14 7.4 268492764 475066843 2 John Lasseter 1998 95 8. 8 206445654 417277164 3 John Lasseter 1999 93 12 6.4 191452396 368400000 4 Monsters, Inc. Pete Docter 2001 92 7.9 245852179 239163000 Finding Nemo Andrew Stanton 2003 107 8 261441092 370001000 The Incredibles Brad Bird 2004 116 9. 8.5 223808164 297503696 7 Cars John Lasseter 2006 117 2007 Andrew Stanton 2008 11 8.4 415004880 648167031 8 Ratatouille Brad Bird 115 1 8.3 191796233 170162503 9. WALL-E 104 7 7.2 244082982 217900167 10 Up Pete Docter 2009 101 10 8.3 293004164 438338580 11 Toy Story 3 Lee Unkrich 2010 103 4 8.1 289916256 272900000 12 Cars 2 John Lasseter 2011 120 13 Brenda Chapman 2012 2013 7.2 162798565 200600000 Brave 102 13 7.2 237283207 301700000 14 Monsters University Dan Scanlon 110 a) Create PROCEDURE to print the domestic and international sales with YEAR for each movie and test it (Write a program where you use this procedure and show the results). Title – Year - Domestic Sales - International Sales b) Create FUNCTION to return the number of movies that length more than 100 minutes using IF and test it (Write a program where you use this function and show the results). c) Create FUNCTION to return the longest movie in Movies table and test it (Write a program where you use this function and show the results).
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Single Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education