SQL select command:

kaikaixinxiny 2012-05-22 02:36:20
9. List the part number, part description, and on-hand value for each part whose on-hand value is at least $7,500. Assign the name ON_HAND VALUE to the computation.
18. What is the part number, description,and price of the most expensive part in the database? (Hint: Use a subquery.)

19. List the sum of the balances of all customers for each sales rep. Order and group the results by sales rep number.

20. List the sum of the balances of all customers for each sales rep, but restrict the output to those sales reps for whom the sum is more than $10,000.

21. List the part number of any part with an unknown description.
...全文
162 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
kaikaixinxiny 2012-06-29
  • 打赏
  • 举报
回复
9.SQL select command: select PartNum,Description ,OnHand from part where Price<=7500
19.SQL select command: select sum(Balance),RepNum from customer group by RepNum order by RepNum
20.SQL select command: select sum(Balance) from customer group by RepNum,Balance having sum(Balance)>10000
21.SQL select command: select PartNum from part where description is null
kaikaixinxiny 2012-05-24
  • 打赏
  • 举报
回复
That do not understand
anzhiqiang_touzi 2012-05-23
  • 打赏
  • 举报
回复
I don't understand,
唐诗三百首 2012-05-22
  • 打赏
  • 举报
回复
I don't understand,
jyh070207 2012-05-22
  • 打赏
  • 举报
回复
???
把表结构写出来...

34,874

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧