问题 单项选择题

18~25题所用的数据如表1和表2所示。

表1 员工表(RGB.dbf)

员工号姓名性别籍贯年龄工资/元
0001王吉兵江苏222003.50
0002张晓春安徽212100.50
0003左燕江苏232330.00
0004赵华安徽222800.00
0005李宁山东202600.00

表2 销售表(SSB.dbf)

员工号商品号金额/元
00010001981
00020002763
00010002802
00020003696
00030001755
00030003684
00040001891
00050001768
00040002656
00030002907
00010003800

要统计出每一种商品的销售金额,下列语句正确的是______。

A.SELECT商品号,销售金额FROM SSB

B.SELECT商品号,SUM(金额)AS销售金额FROM SSB

C.SELECT商品号,SUM(金额)AS销售金额FROM SSB ORDER BY 1

D.SELECT商品号,SUM(金额)AS销售金额FROM SSB GROUP BY商品号

答案

参考答案:D

解析:

[分析]: 要统计出每一种商品的销售金额,显然应按照商品号进行分组,并求出每一组的金额字段的和。

单项选择题
单项选择题

When I was looking for a Christmas present for my daughter in a toy store, a nicely dressed little girl, with some money in her little hand, was looking at some beautiful dolls. When she saw a doll she liked, she would ask her father if she had enough money. He usually said yes.
At the same time, a boy, with old and small clothes, was looking at some video games. He, too, had money in his hand, but it looked no more than five dollars. Each time he picked up one of the video games and looked at his father, he shook his head.
The little girl had chosen her doll, a very beautiful one. However, she noticed the boy and his father. She saw the boy give up a video game with disappointment and walk to another corner of the store.
The little girl put her doll back to the shelf and ran over to the video game. After she talked to her father, she paid for the video game and whispered(耳语) to the shop assistant.
So the boy got the video game that he wanted for free—he was told it was a prize from the store. He smiled happily, although he felt it was so incredible. The girl saw all this happen. She smiled, too.
When I walked out of the store to my car, I heard the father ask his daughter why she had done that. I would never forget their short talk. " Daddy, didn’t Grandma want me to buy something that would make me happy"
He said, "Of course, she did. "
"Well, I just did!" With that, the little girl started skipping towards their car happily.

What does the sentence "Well, I just did!" mean

A.I just did something for the boy and he would be happy.
B.I just bought a nice doll for myself and I would be happy.
C.I just bought a present for Grandma and she would be happy.
D.I just did something for the boy and it would make me happy.