Customer (CID, CName, Street, City, State, Gender) Agent (AgentID, GName, Position, Salary, Gender, BranchNo) Invoice(InvoiceNo, CID, AgentID, Product, Quantity, Total_amt) List all cities and states for all the customers. Make sure all the cities are unique. Sort the listing by states and by cities within the state.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter11: Group Functions
Section: Chapter Questions
Problem 16MC
icon
Related questions
Question

Customer (CID, CName, Street, City, State, Gender)
Agent (AgentID, GName, Position, Salary, Gender, BranchNo)
Invoice(InvoiceNo, CID, AgentID, Product, Quantity, Total_amt)

List all cities and states for all the customers. Make sure all the cities are unique. Sort the listing by states and by cities within the state. 

Expert Solution
steps

Step by step

Solved in 3 steps with 1 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
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
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
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning