问题 单项选择题

在学生选课表SC中,查询选修了3号课程的学生的学号(XH)及其成绩(CJ)。查询结果按分数的降序排列。实现该功能的正确SQL语句是( )。

A.SELECT XH,CJ FROM SC WHERE CH='3'ORDER BY CJ DESC

B.SELECT XH,CJ FROM SC WHERE CH='3'ORDER BY CJ ASC

C.SELECT XH,CJ FROM SC WHERE CH='3'GROUP BY CJ DESC

D.SELECT XH,CJ FROM SC WHERE CH='3'GROUP BY CJ ASC

答案

参考答案:A

解析:
要在学生选课表SC中查询“学号和成绩”,主句为SELECT XH, CJ-FROM SC。条件为“选修了3号课程”,故条件子句为WHERECH='3'。SQL查询的结果还可以排序,子句是ORDER BY<列名>][ASC|DESC],其中ASC表示升序,DESC表示降序。题目要求按照分数的降序排列,故子句为ORDER BY CJ DESC。

实验题
完形填空
完形填空。
     Back in my country, when I was a child, I used to go to "market day" with my mother. One day each
week, farmers used to   1   their fruit and vegetables into the city. They   2   one street to all cars, and the
farmers set up tables for their   3  . This outdoor market was a great place to   4  . Everything was fresher
than produce in grocery stores because the farmers brought it in   5   after the harvest. My mother and I
always got there early in the morning to get the   6   produce.
     The outdoor market was a wonderful adventure for a small child,   7   was like a festival-full of colors
and   8  . There are red tomatoes, yellow lemons, green lettuce, peppers, grapes, onions. The farmers did
their-own   9  . They all shouted loudly for  10  to buy their produce. "Come and buy my beautiful oranges!
They're juicy and delicious and full of vitamins to  11  your children healthy and strong!"
     Everyone used to  12  with the farmers over the  13  of their produce. It was like a wonderful drama in
a theatre; the buyers and sellers were the " 14 " in this drama. My mother was an  15  at this. First, she picked
the freshest, most attractive tomatoes, for example. Then she asked the price. The seller told her.
     "What?" she said. She looked very surprised. "So  16 ?"
     The seller looked terribly  17 . "My dear lady!" he replied. "I'm a poor,  18  farmer. These are the cheapest
tomatoes on the market!"
     They always argued for several minutes before agreeing  19  a price. My mother took her tomatoes and left.
Both buyer and seller were  20 . The drama was over.
( )1.A. carry       
( )2.A. opened      
( )3.A. produce     
( )4.A. buy         
( )5.A. hurriedly   
( )6.A. best        
( )7.A. who         
( )8.A. voices      
( )9.A. shopping    
( )10.A. customers  
( )11.A. keep       
( )12.A. argue      
( )13.A. order      
( )14.A. viewers    
( )15.A. actress    
( )16.A. wonderful  
( )17.A. injured    
( )18.A. excellent  
( )19.A. with       
( )20.A. disappointed
B. take      
B. closed    
B. goods     
B. sell      
B. immediately
B. finest    
B. that      
B. noises    
B. business  
B. producers 
B. let       
B. talk      
B. price     
B. listeners 
B. inventor  
B. exciting  
B. hurt      
B. fair      
B. to        
B. encouraged
C. bring     
C. started   
C. food      
C. bargain   
C. directly  
C. freshest  
C. which     
C. sounds    
C. shouting  
C. themselves
C. expect    
C. discuss   
C. quality   
C. actors    
C. advancer  
C. cheap     
C. damaged   
C. honest       
C. in        
C. satisfied 
D. fetch     
D. stopped   
D. product   
D. shop      
D. straightly
D. cheapest  
D. what      
D. accent    
D. advertising              
D. sellers   
D. make      
D. speak     
D. form      
D. directors 
D. expert    
D. expensive 
D. wounded   
D. easy      
D. on        
D. tired