Jump to content

amitj

Members
  • Posts

    1
  • Joined

  • Last visited

amitj's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Question: The following SQL statement returns TRUE and lists the product names if it finds ANY records in the OrderDetails table that quantity = 10 Answer by W3Schools.com SELECT ProductNameFROM ProductsWHERE ProductID = ANY (SELECT ProductID FROM OrderDetails WHERE Quantity = 10); which is wrong, as the result showing by above query is 31, but right answer will be 44 select productname, quantity from products inner join orderdetails on products.productid=orderdetails.productid and quantity=10 order by productname please verify and confirm.
×
×
  • Create New...