3. List only the total number of movies in the table. Take a screenshot now and paste it here. 4. List the title and year for the 5 oldest movies in the table. Hint: LIMIT. Take a screenshot now and paste it here. 5. List only the average rating for the movies from the 90's. Take a screenshot now and paste it here.

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
3. List only the total number of movies in the table.
Take a screenshot now and paste it here.
4. List the title and year for the 5 oldest movies in the table. Hint: LIMIT.
Take a screenshot now and paste it here.
5. List only the average rating for the movies from the 90's.
Take a screenshot now and paste it here.
Transcribed Image Text:3. List only the total number of movies in the table. Take a screenshot now and paste it here. 4. List the title and year for the 5 oldest movies in the table. Hint: LIMIT. Take a screenshot now and paste it here. 5. List only the average rating for the movies from the 90's. Take a screenshot now and paste it here.
mysql> SELECT * FROM movie;
+----
| id | title
+-
| 1 | Abominable
2
|
|
|
|
Hotel Translyvania
Onward
3
4 | Sing
5 | The SpongeBob Movie
6 | Toy Story
7 | Toy Story 2
8
9
10
Toy Story 3
Toy Story 4
Soul
Surf's Up
11
12 | Trolls
13 | Trolls World Tour
| 14 | Zootopia
| 16 | Howl's Moving Castle
| 17 | Happy Feet
+---
16 rows in set (0.00 sec)
I year | duration | gross | rating I
| 2019
179.1 |
| 2012
358.3 |
2020
142.0 |
2016
634.2 |
2020
1995
1999
| 2010
| 2019
| 2020
2007
2016
2020
2016
2004
| 2006
97
91
102
108 |
91 |
81
92 |
103
1066.9 |
100 | 1073.4 |
100 |
NULL |
85
152.0 |
92
90 |
346.9 |
NULL
1023.8 |
236.2 |
384.3 |
108
NULL |
373.6 |
497.3 |
119 |
108
5.0
9.0
8.3
8.3
8.7
7.9
9.0 |
8.3 |
9.5
4.7 |
5.0
9.0 |
8.7 |
8.3 |
8.2 I
6.4 |
Transcribed Image Text:mysql> SELECT * FROM movie; +---- | id | title +- | 1 | Abominable 2 | | | | Hotel Translyvania Onward 3 4 | Sing 5 | The SpongeBob Movie 6 | Toy Story 7 | Toy Story 2 8 9 10 Toy Story 3 Toy Story 4 Soul Surf's Up 11 12 | Trolls 13 | Trolls World Tour | 14 | Zootopia | 16 | Howl's Moving Castle | 17 | Happy Feet +--- 16 rows in set (0.00 sec) I year | duration | gross | rating I | 2019 179.1 | | 2012 358.3 | 2020 142.0 | 2016 634.2 | 2020 1995 1999 | 2010 | 2019 | 2020 2007 2016 2020 2016 2004 | 2006 97 91 102 108 | 91 | 81 92 | 103 1066.9 | 100 | 1073.4 | 100 | NULL | 85 152.0 | 92 90 | 346.9 | NULL 1023.8 | 236.2 | 384.3 | 108 NULL | 373.6 | 497.3 | 119 | 108 5.0 9.0 8.3 8.3 8.7 7.9 9.0 | 8.3 | 9.5 4.7 | 5.0 9.0 | 8.7 | 8.3 | 8.2 I 6.4 |
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
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