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 Distributor_ID Distributor Name varchar(10) PK varchar(20) varchar(100) number(10) varchar(30) varchar(10) PK Customer ID Customer_Name varchar(20) Address Mobile Email Address varchar(100) number(10) varchar(30) Mobilenumber Email Sales Info
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 Distributor_ID Distributor Name varchar(10) PK varchar(20) varchar(100) number(10) varchar(30) varchar(10) PK Customer ID Customer_Name varchar(20) Address Mobile Email Address varchar(100) number(10) varchar(30) Mobilenumber Email Sales Info
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...
Related questions
Question

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
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
Salesid
Sales_Date
IME_No
totl Price
number(10) PK
date
IME No
Model Name
Manufacturer
varchar(10) PK
varchar(20)
varchar(20)
varchar(10) FK
number(10)
number(10)
number(10)
varchar(10) FK
Date_Of_Manufac
Warranty_in_Years
date
number(10)
number(7,2)
varchar(10) FK
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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps

Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY