Question: Consider the below query and choose the correct answer select c . Name as Category, count ( p . ProductID ) as NoOfProducts from Production.Product

Consider the below query and choose the correct answer
select c. Name as Category, count(p.ProductID) as NoOfProducts
from Production.Product as p, Production.ProductSubcategory as s, Production.Prod
uctCategory as c
where p.ProductSubcategoryID = s.ProductSubcategoryID
and s.ProductCategoryID = c.ProductCategoryID
group by s. Name;
The query is syntactically correct but gives the wrong answer
The query is syntactically wrong
The query is syntactically correct and gives the correct answer
The query contains one or more wrongly named clauses
 Consider the below query and choose the correct answer select c.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!