Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using the following schema, find all the information regarding the purchases of customer # 7 5 . ( No projections ) CREATE TABLE IF NOT
Using the following schema, find all the information regarding the purchases of customer #No projections
CREATE TABLE IF NOT EXISTS "purchase"
productid mediumint default NULL,
customerid mediumint default NULL,
date varchar
placebought varchar default NULL
;
CREATE TABLE IF NOT EXISTS "customer"
customerid mediumint,
email varchar default NULL,
name varchar default NULL,
postalZip varchar default NULL,
phone varchar default NULL
;
CREATE TABLE IF NOT EXISTS "product"
productid mediumint,
price mediumint default NULL,
company varchar
name TEXT default NULL,
color string default NULL
; SELECT
prproductid AS productid,
pcustomerid,
pdate,
pplacebought,
prprice,
prcompany,
prname,
prcolor
FROM
purchase p
JOIN
customer c ON pcustomerid ccustomerid
JOIN
product pr ON pproductid prproductid
WHERE
ccustomerid ; the problem it has to be in that same order and i dont see the to ge in that order specifically like in the imge
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started