Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

What if there were no limits?

Answered: 1 week ago