Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
