问题 单项选择题

职员.DBF:职员号 C(3),姓名 C(6),性别 C(2),组号 N(1),职务 C (10) 客户.DBF:客户号 C(4),客户名 C(36),地址 C(36),所在城市 C (36) 订单.DBF:订单号 C(4),客户号 C(4),职员号 C(3),签订日期 D,金额 N(6,2) 查询金额最大的那 10%订单的信息。正确的 SQL 语句是______。

A.SELECT * TOP 10 PERCENT FROM 订单

B.SELECT TOP 10% * FROM 订单 ORDER BY 金额

C.SELECT * TOP 10 PERCENT FROM 订单 ORDER BY 金额

D.SELECT TOP 10 PERCENT * FROM 订单 ORDER BY 金额 DESC

答案

参考答案:D

解析:Visual FoxPro的SELECT-SQL命令的一般语法格式如下:SELECT [ALL|DISTINCT]<目标列表达式>[,<目标列表达式>]…FROM<基本表(或视图)> [,<基本表(或视图)>]…[WHERE<条件表达式>][GROUP BY<列名1>[HAVING<内部函数表达式>]][ORDER BY<列名2>[ASC|DESC]][TOP<数值表达式>[PERCENT]]说明:①ORDER BY子句:指定查询结果中记录按<列名2>排序,默认升序。选项ASC表示升序,DESC表示降序。② TOP子句:TOP子句必须与ORDER BY子句同时使用。<数值表达式>表示在符合条件的记录中选取的记录数。范围1~32 767,排序后的若干记录只计一个。含PERCENT选项时,<数值表达式>表示百分比, 记录数为小数时自动取整,范围0.01~99.99。

完形填空
In a land far away, once upon a time there was great poverty (贫困),and only the rich could manage without great _36. Three of those rich men and their servants were_37_together on a road when they came to a very_38_village.
The first could not stand seeing the poverty, _39 he took all the gold and jewels from his wagons (四轮载重马车) and shared 40 out among the villagers. He wished them all the best of luck, and he left.
The second rich man ,seeing the _41 situation, stopped for a short time and gave _42 all his food and drink, since he _43  see that money would be of little _44 to them. He made sure that they each 45their fair share and would have enough food to _46 for some time . Then, he left.
The third rich man, on seeing such poverty, _47  and went straight through the _48  without stopping. The two other rich men saw this from a distance and commented with each other 49 the third rich man lacked sympathy. It was _50  that they themselves had been there to offer help.
However, three days later, they 51the  third rich man ,who was coming in the opposite direction . He was 52  travelling quickly, but his wagons,  53  the gold and valuables they had been  54  ,were now full of farming tools and bags of  55 .He was rushing back to help them out of poverty.
小题1:
A.lossB.expectationsC.successD.problems
小题2:
A.standingB.travellingC.gatheringD.running
小题3:
A.farawayB.poorC.differentD.ancient
小题4:
A.unlessB.becauseC.soD.if
小题5:
A.themB.anythingC.nothingD.those
小题6:
A.curiousB.worryingC.dangerousD.puzzling
小题7:
A.the villagersB.his servantsC.the othersD.the rest
小题8:
A.couldB.mightC.shouldD.must
小题9:
A.interestB.concernC.useD.attraction
小题10:
A.returnedB.gainedC.offeredD.received
小题11:
A.remainB.lastC.supplyD.share
小题12:
A.turned backB.set outC.showed offD.speeded up
小题13:
A.villageB.landC.fieldD.road
小题14:
A.whetherB.howC.whereD.when
小题15:
A.goodB.certainC.trueD.strange
小题16:
A.welcomedB.metC.acceptedD.persuaded
小题17:
A.stillB.alreadyC.alwaysD.indeed
小题18:
A.exceptB.instead ofC.apart fromD.along with
小题19:
A.loadingB.treasuringC.carryingD.earning
小题20:
A.foodB.jewelsC.moneyD.seeds
单项选择题