Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given the two tables described below, which of the following queries will display number of orders shipped? customer: with the fields customerid(PK), lastname, firstname order:
Given the two tables described below, which of the following queries will display number of orders shipped?
customer: with the fields customerid(PK), lastname, firstname
order: with the fields orderid(PK), orderdate, shipdate, customerid(FK)
1. SELECT COUNT(shipdate) FROM order;
2. SELECT COUNT(*) FROM order WHERE shipdate IS NULL;
3. SELECT COUNT(*) FROM order WHERE orderdate IS NOT NULL;
4. SELECT COUNT(shipdate) FROM order GROUP BY customerid;
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