Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You have the following tables with sample data: TABLE: customer CustNum CustName City CreditLimit 1 Foxbar TORONTO 1 0 0 0 2 Wright BORONTON 1
You have the following tables with sample data:
TABLE: customer
CustNum CustName City CreditLimit
Foxbar TORONTO
Wright BORONTON
Caleb HAMPTON
manish BRAMPTON
MannyCupat OAKVILLE
Ironwood OAKVILLE
Kent BURLINGTON
Moore TORONTO
Felipe MISSISSAUGA
Kwan TORONTO
Khoury MISSISSAUGA
Brant OAKVILLE
Wells BURLINGTON
TABLE: orders
OrderNum OrderDate CustNum
You want to display customers who have placed at least orders. Which of the following queries will display the correct results? Select all that apply.
Question options:
SELECT ccustnum,custname, ordernum
FROM customer c JOIN orders o
ON ccustnumocustnum
WHERE ordernum
GROUP BY ccustnum,custname;
SELECT ccustnum,custname, COUNTordernum
FROM customer c JOIN orders o
ON ccustnumocustnum
GROUP BY ccustnum,custname
WHERE COUNTordernum;
SELECT ccustnum,custname, COUNTordernum
FROM customer c JOIN orders o
ON ccustnumocustnum
GROUP BY ccustnum,custname
HAVING COUNTordernum;
SELECT ccustnum,custname
FROM customer c JOIN orders o
ON ccustnumocustnum
GROUP BY ccustnum,custname
HAVING COUNTordernum;
SELECT ccustnum,custname, COUNTordernum
FROM customer c JOIN orders o
ON ccustnumocustnum
GROUP BY ccustnum,custname;
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