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, countpProductID as NoOfProducts
from Production.Product as p Production.ProductSubcategory as s Production.Prod
uctCategory as c
where pProductSubcategoryID sProductSubcategoryID
and sProductCategoryID cProductCategoryID
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
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
