按以下要求写出SQL语句:若数据库a表中有字段:学号(no)、姓名(name)、性别(sex)、年龄(age),b表中有字段:学号(no)、数学成绩(math)、英文成绩(eng),查询要求:显示字段为no、name、math,且math在60至69之间,并按从大到小排列
大家帮忙看看,急,谢谢了,先

解决方案 »

  1.   

    select no,name,math
    from table 
    where  math>=60 and math<=69
    order by match desc 
      

  2.   

    select a.no,a.name,b.math from a,b where a.no = b.no and b.math between 60 and 69;
      

  3.   

    select a.no,a.name,b.math from a,b where a.no = b.no and b.math between 60 and 69 order by b.math desc;