题目
数值题
I have a table with five thousand rows and 20 columns. There are 75 unique items, and 30 different levels of discounts (e.g. 3%, 5%). I run the SQL query below. How many columns will be returned? SELECT item, sum(price) FROM sales WHERE discount > 10 GROUP BY item HAVING sum(price) > 200
查看解析
标准答案
Please login to view
思路分析
We start by identifying what the SQL query is selecting and how many columns that implies.
The SELECT clause reads: SELECT item, sum(price)
This means the result set will include two expressions per row: the value of item and the aggregate sum(price).
Next, conside......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
When the human resources manager wants to gather data about the salary and start date, listed by an employee and by the department, which language would the manager use?
Question at position 38 Joining tables or using a subquery may produce the same result.TrueFalse
Question at position 22 What result set will the following query return? SELECT Item_No FROM Order_V WHERE quantity > 10;The Order_Id of all orders that had more than 10 itemsThe Item_No of all orders that had 10 or more itemsThe Order_Id of all orders that had more than one itemThe Item_No of all orders that had more than 10 items
Question at position 8 What result set will the following query return? SELECT Item_No FROM Order_V WHERE quantity > 10;The Item_No of all orders that had 10 or more itemsThe Order_Id of all orders that had more than 10 itemsThe Order_Id of all orders that had more than one itemThe Item_No of all orders that had more than 10 items
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!