your submission will be the query that you would write that would return the needed result Write a query that returns the First_Name and Last_Name of each actor, and the count of the number of times their films have been rented. Write a query that returns the First_Name and Last_Name of the actor, and the count of the number of time their film has been rented, of the actor with the most rentals

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter11: Sql Server Databases
Section: Chapter Questions
Problem 6E
icon
Related questions
icon
Concept explainers
Question

your submission will be the query that you would write that would return the needed result

Write a query that returns the First_Name and Last_Name of each actor, and the count of the number of times their films have been rented.

Write a query that returns the First_Name and Last_Name of the actor, and the count of the number of time their film has been rented, of the actor with the most rentals

category
category_id Long:I:U
◆ last_update Date Time
◆ name VarChar(25):I
Triggers (1)
Indexes (1)
Uniques (1)
Properties (32)
▶
Triggers (1)
Uniques (1)
Properties (32)
▶
country
VarChar(50)
◆ country
country_id Long:I:U
◆last_update DateTime
▶
▶
film_category
◆ category_id Long:I
◆film_id
Long:I
last_update DateTime
Triggers (1)
Indexes (2)
Uniques (1)
Properties (32)
city
VarChar(50)
◆ city
city_id
Long:I:U
◆ country_id
Long:I
last_update Date Time
▶
▶
Triggers (1)
Indexes (1)
Uniques (1)
Properties (32)
▶
▶
▶
address
VarChar(50)
VarChar(50):N
Long:I:U
◆ city_id
Long:I
VarChar(20)
◆ district
◆last_update
Date Time
VarChar(20)
◆ phone
◆ postal code VarChar(10):N
Triggers (1)
Indexes (1)
Uniques (1)
Properties (32)
◆ address
◆ address2
address_id
▶
language
language_id Long:I:U
◆last_update Date Time
String(20)
◆ name
Triggers (1)
Uniques (1)
Properties (32)
film
◆ description
film_id
language_id
◆last_update
◆ length
Text:N
Long:I:U
Long:I
DateTime
Unsigned Long:N
original_language_id Long:I:N
◆ rating
◆ release_year
rental_duration
◆ rental_rate
rental
◆ customer_id
◆ inventory_id
◆last_update
◆ rental_date
rental_id
▶
▶
◆ return_date
◆ staff_id
replacement_cost
special features VarChar(255):N
◆ title
VarChar(255):I
Triggers (3)
Indexes (3)
Uniques (1)
Properties (32)
mpaa_rating:N
String(4):N
inventory
◆film_id
Triggers (1)
Indexes (3)
Uniques (1)
Properties (32)
◆store_id
Triggers (1)
Indexes (2)
Uniques (1)
Properties (32)
Long:I
Long:I
Date Time
Date Time
Long:I:U
DateTime:N
Long:I
Long
Double
Double
▶
Long:I
inventory_id Long:I:U
last_update Date Time
Long:I
▶
▶
▶
▶
▶
store
◆ address_id
◆last_update
◆ manager_staff_id
store_id
Triggers (1)
Indexes (1)
Uniques (2)
Properties (32)
Long:I
Date Time
Long:I:U
Long:I:U
staff
◆ active
◆ address_id
Boolean
Long:I
VarChar(50):N
◆ email
◆ first_name VarChar(45)
VarChar(45)
◆ last_name
◆last_update
Date Time
◆ password VarChar(40):N
◆ picture
Picture: N
staff_id
Long:I:U
◆store_id
Long:I
◆ username VarChar(16)
Triggers (1)
Indexes (2)
Uniques (1)
Properties (32)
▶
▶
▶
▶
▶
▶
film_actor
Long:I
Long:I
◆last_update DateTime
◆ actor_id
◆film_id
Triggers (1)
Indexes (2)
Uniques (1)
Properties (32)
payment
◆ rental_id
◆ staff_id
Triggers (1)
Indexes (3)
Uniques (1)
Properties (32)
▶
◆ amount
Double
Long:I
◆ customer_id
◆last_update
payment_date DateTime
Date Time
payment_id
Long:I:U
Long:I:N
Long:I
▶
customer
active
◆ address_id
◆ create_date
customer_id
▶
Boolean
Long:I
Date Time
Long:I:U
VarChar(50):N
◆ first_name VarChar(45)
last_name VarChar(45):I
◆ email
◆ last_update Date Time
◆store_id
Long:I
Triggers (1)
Indexes (3)
Uniques (1)
Properties (32)
▶
▶
▶
actor
actor_id
Long:I:U
◆ first_name VarChar(45)
last_name VarChar(45):I
◆last_update Date Time
Triggers (1)
Indexes (1)
Uniques (1)
Properties (32)
▶
▶
film_text
description Text:N
film_id Long:I:U
title VarChar(255)
Indexes (1)
Methods (1)
Uniques (1)
Properties (32)
▶
▶
▶
Transcribed Image Text:category category_id Long:I:U ◆ last_update Date Time ◆ name VarChar(25):I Triggers (1) Indexes (1) Uniques (1) Properties (32) ▶ Triggers (1) Uniques (1) Properties (32) ▶ country VarChar(50) ◆ country country_id Long:I:U ◆last_update DateTime ▶ ▶ film_category ◆ category_id Long:I ◆film_id Long:I last_update DateTime Triggers (1) Indexes (2) Uniques (1) Properties (32) city VarChar(50) ◆ city city_id Long:I:U ◆ country_id Long:I last_update Date Time ▶ ▶ Triggers (1) Indexes (1) Uniques (1) Properties (32) ▶ ▶ ▶ address VarChar(50) VarChar(50):N Long:I:U ◆ city_id Long:I VarChar(20) ◆ district ◆last_update Date Time VarChar(20) ◆ phone ◆ postal code VarChar(10):N Triggers (1) Indexes (1) Uniques (1) Properties (32) ◆ address ◆ address2 address_id ▶ language language_id Long:I:U ◆last_update Date Time String(20) ◆ name Triggers (1) Uniques (1) Properties (32) film ◆ description film_id language_id ◆last_update ◆ length Text:N Long:I:U Long:I DateTime Unsigned Long:N original_language_id Long:I:N ◆ rating ◆ release_year rental_duration ◆ rental_rate rental ◆ customer_id ◆ inventory_id ◆last_update ◆ rental_date rental_id ▶ ▶ ◆ return_date ◆ staff_id replacement_cost special features VarChar(255):N ◆ title VarChar(255):I Triggers (3) Indexes (3) Uniques (1) Properties (32) mpaa_rating:N String(4):N inventory ◆film_id Triggers (1) Indexes (3) Uniques (1) Properties (32) ◆store_id Triggers (1) Indexes (2) Uniques (1) Properties (32) Long:I Long:I Date Time Date Time Long:I:U DateTime:N Long:I Long Double Double ▶ Long:I inventory_id Long:I:U last_update Date Time Long:I ▶ ▶ ▶ ▶ ▶ store ◆ address_id ◆last_update ◆ manager_staff_id store_id Triggers (1) Indexes (1) Uniques (2) Properties (32) Long:I Date Time Long:I:U Long:I:U staff ◆ active ◆ address_id Boolean Long:I VarChar(50):N ◆ email ◆ first_name VarChar(45) VarChar(45) ◆ last_name ◆last_update Date Time ◆ password VarChar(40):N ◆ picture Picture: N staff_id Long:I:U ◆store_id Long:I ◆ username VarChar(16) Triggers (1) Indexes (2) Uniques (1) Properties (32) ▶ ▶ ▶ ▶ ▶ ▶ film_actor Long:I Long:I ◆last_update DateTime ◆ actor_id ◆film_id Triggers (1) Indexes (2) Uniques (1) Properties (32) payment ◆ rental_id ◆ staff_id Triggers (1) Indexes (3) Uniques (1) Properties (32) ▶ ◆ amount Double Long:I ◆ customer_id ◆last_update payment_date DateTime Date Time payment_id Long:I:U Long:I:N Long:I ▶ customer active ◆ address_id ◆ create_date customer_id ▶ Boolean Long:I Date Time Long:I:U VarChar(50):N ◆ first_name VarChar(45) last_name VarChar(45):I ◆ email ◆ last_update Date Time ◆store_id Long:I Triggers (1) Indexes (3) Uniques (1) Properties (32) ▶ ▶ ▶ actor actor_id Long:I:U ◆ first_name VarChar(45) last_name VarChar(45):I ◆last_update Date Time Triggers (1) Indexes (1) Uniques (1) Properties (32) ▶ ▶ film_text description Text:N film_id Long:I:U title VarChar(255) Indexes (1) Methods (1) Uniques (1) Properties (32) ▶ ▶ ▶
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr