1 Update CITY_NAME of CUSTOMER table for all customers. Take CITY_NAME from CITY table according to CITY_ID of CUSTOMER table. 2 Display the ORDER_ID and how many product(s) ordered for per order

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter7: Database Administration
Section: Chapter Questions
Problem 15RQ: The CUSTOMER table contains a foreign key, REP_NUM, that must match the primary key of the REP...
icon
Related questions
icon
Concept explainers
Question
100%
1 Update CITY_NAME of CUSTOMER table for all customers. Take
CITY_NAME from CITY table according to CITY_ID of CUSTOMER table.
2 Display the ORDER_ID and how many product(s) ordered for per order
Transcribed Image Text:1 Update CITY_NAME of CUSTOMER table for all customers. Take CITY_NAME from CITY table according to CITY_ID of CUSTOMER table. 2 Display the ORDER_ID and how many product(s) ordered for per order
Given the ORDER, ORDER_DETAIL, CUSTOMER, and PRODUCT tables.
CUSTOMER
CUSTOMER_ID CUSTOMER_NAME
1565
Emre
1789
Akif
1265
Eyup
4537
Fatih
6542
Murat
CITY
CITY_ID CITY_NAME
1
Gaziantep
2
Balıkesir
3
Edirne
4
Van
5
Rize
6
Kayseri
ORDER
ORDER_ID ORDER DATE
1
05.08.2012
2
11.04.2015
3
12.06.2013
4
02.05.2015
5
02.09.2014
ADDRESS CITY_ID CITY_NAME
Gatem
2
Rasaf yolu
1
Damlacık
6
köyü
Seyrantepe
1
Sarıgüllük
PRODUCT
PRODUCT_ID PRODUCT_NAME
PRICE (TL)
1
Bilgisayar
3250
2
Telefon
1800
3
Monitör
650
4
Klavye
45
5
1200
Televizyon
Masa
6
60
CUSTOMER_ID
1565
1265
4537
6542
1565
ORDER_DETAIL
ORDER_ID PRODUCT_ID
1
1
1
3
1
4
2
4
3
4
3
5
4
1
4
3
4
5
4
6
5
1
5
3
Transcribed Image Text:Given the ORDER, ORDER_DETAIL, CUSTOMER, and PRODUCT tables. CUSTOMER CUSTOMER_ID CUSTOMER_NAME 1565 Emre 1789 Akif 1265 Eyup 4537 Fatih 6542 Murat CITY CITY_ID CITY_NAME 1 Gaziantep 2 Balıkesir 3 Edirne 4 Van 5 Rize 6 Kayseri ORDER ORDER_ID ORDER DATE 1 05.08.2012 2 11.04.2015 3 12.06.2013 4 02.05.2015 5 02.09.2014 ADDRESS CITY_ID CITY_NAME Gatem 2 Rasaf yolu 1 Damlacık 6 köyü Seyrantepe 1 Sarıgüllük PRODUCT PRODUCT_ID PRODUCT_NAME PRICE (TL) 1 Bilgisayar 3250 2 Telefon 1800 3 Monitör 650 4 Klavye 45 5 1200 Televizyon Masa 6 60 CUSTOMER_ID 1565 1265 4537 6542 1565 ORDER_DETAIL ORDER_ID PRODUCT_ID 1 1 1 3 1 4 2 4 3 4 3 5 4 1 4 3 4 5 4 6 5 1 5 3
Expert Solution
steps

Step by step

Solved in 3 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
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage