Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 3RA
icon
Related questions
Question

I want SQL statement.

 

The picture has names of table and column.

 

 

Find customers who have more than one order:

Show customer number and customer name in your result. Sort the result according to customer number. (Do not show duplicate values)

Do not use aggregate functions (COUNT()) to answer this question.

Hint: To find customers with different order numbers, you need to join the table dbs211_orders with itself. (If for the same customer, there are different orders.) To get the given result, you may need to join more tables.

 

DBS211_CUSTOMERS
CUSTOMERNUMBER
CUSTOMERNAME
CONTACTLASTNAME
CONTACTFIRSTNAME
PHONE
ADDRESSLINE 1
ADDRESSLINE2
CITY
STATE
POSTAL CODE
COUNTRY
SALESREPEMPLOYEENUMBER
CREDITLIMIT
DBS211 EMPLOYEES
DBS211_OFFICES
DBS211_ORDERDETAILS
ORDERNUMBER
PRODUCTCODE
QUANTITY ORDERED
PRICEEACH
ORDERLINENUMBER
DBS211_ORDERS
ORDERNUMBER
ORDERDATE
REQUIREDDATE
SHIPPEDDATE
STATUS
COMMENTS
CUSTOMERNUMBER
DBS211_PAYMENTS
DBS211_PRODUCTLINES
DBS211_PRODUCTS
Transcribed Image Text:DBS211_CUSTOMERS CUSTOMERNUMBER CUSTOMERNAME CONTACTLASTNAME CONTACTFIRSTNAME PHONE ADDRESSLINE 1 ADDRESSLINE2 CITY STATE POSTAL CODE COUNTRY SALESREPEMPLOYEENUMBER CREDITLIMIT DBS211 EMPLOYEES DBS211_OFFICES DBS211_ORDERDETAILS ORDERNUMBER PRODUCTCODE QUANTITY ORDERED PRICEEACH ORDERLINENUMBER DBS211_ORDERS ORDERNUMBER ORDERDATE REQUIREDDATE SHIPPEDDATE STATUS COMMENTS CUSTOMERNUMBER DBS211_PAYMENTS DBS211_PRODUCTLINES DBS211_PRODUCTS
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Could you do typing the query here please?

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Database Environment
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.
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning