Write a query to display the mobile model name which has made the maximum sales. Give an alias for the maximum sales as "MAX_SALES". Sort the records based on model name in descending order. (Hint: Use mobile_master and sales_info tables to retrieve records)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Write a query to display the mobile model name which has made the maximum sales. Give an alias for the maximum sales as "MAX_SALES". Sort the records based on model name in descending order.
(Hint: Use mobile_master and sales_info tables to retrieve records)
Distributor
Customer Info
o
Distributor_ID
Distributor_Name
Address
Mobilenumber
Email
varchar(10) PK
varchar(20)
varchar(100)
number(10)
varchar(30)
varchar(10) PK
Customer_Name varchar(20)
varchar(100)
number(10)
varchar(30)
Customer_ID
Address
Mobile
Email
Sales_Info
Mobile_Master
number(10) PK
IME No
Model Name
Manufacturer
Date Of_Manufac
Warranty_in_Years
varchar(10) PK
varchar(20)
varchar(20)
Salesid
Sales Date
IME_No
tot| Price
date
date
number(10)
number(7,2)
varchar(10) FK
varchar(10) FK
varchar(10) FK
number(10)
number(10)
number(10)
varchar(10) FK
Discount
Net Amount
Customer_ID
Price
Distributor_ID
Spec No
Mobile_Specification
varchar(10) PK
varchar(20)
varchar(20)
varchar(20)
varchar(20)
number(10)
Memory_Card Capacity_GB number(10)
varchar(5)
varchar(5)
varchar(5)
varchar(5)
varchar(5)
varchar(5)
varchar(20)
number(10)
Spec_No
Dimension
Weight
Display Type
Display Size
Internal_mem_in_MB
PK - Primary Key
FK - Foreigh Key
Network 3G
GPRS
EDGE
Bluetooth
Camera
Camera_Quality
OS
Battery Life_Hrs
Transcribed Image Text:Write a query to display the mobile model name which has made the maximum sales. Give an alias for the maximum sales as "MAX_SALES". Sort the records based on model name in descending order. (Hint: Use mobile_master and sales_info tables to retrieve records) Distributor Customer Info o Distributor_ID Distributor_Name Address Mobilenumber Email varchar(10) PK varchar(20) varchar(100) number(10) varchar(30) varchar(10) PK Customer_Name varchar(20) varchar(100) number(10) varchar(30) Customer_ID Address Mobile Email Sales_Info Mobile_Master number(10) PK IME No Model Name Manufacturer Date Of_Manufac Warranty_in_Years varchar(10) PK varchar(20) varchar(20) Salesid Sales Date IME_No tot| Price date date number(10) number(7,2) varchar(10) FK varchar(10) FK varchar(10) FK number(10) number(10) number(10) varchar(10) FK Discount Net Amount Customer_ID Price Distributor_ID Spec No Mobile_Specification varchar(10) PK varchar(20) varchar(20) varchar(20) varchar(20) number(10) Memory_Card Capacity_GB number(10) varchar(5) varchar(5) varchar(5) varchar(5) varchar(5) varchar(5) varchar(20) number(10) Spec_No Dimension Weight Display Type Display Size Internal_mem_in_MB PK - Primary Key FK - Foreigh Key Network 3G GPRS EDGE Bluetooth Camera Camera_Quality OS Battery Life_Hrs
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY