MCQs > IT & Programming > Microsoft SQL Server > How is the following query incorrect? select * from Orders where OrderID = (select OrderID from OrderItems where ItemQty > 50)

Microsoft SQL Server MCQs

How is the following query incorrect?

select * from Orders where OrderID = (select OrderID from OrderItems where ItemQty > 50)

Answer

Correct Answer: The sub-query can return more than one row, so, '=' should be replaced with 'in'

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Microsoft SQL Server Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Microsoft SQL Server Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it