• 2022-07-28
    从stu表和score表中实现联合查询,查询stu表的id,name字段和score表中的courseid,score字段,两表字段id相同,成绩score大于80分,按score升序排列。
  • Select stu.id, stu.name, score.courseid, score.score from stu,score where stu.id=score.id and score>80 order by score;

    内容

    • 0

      查询Score表中成绩在60到80之间的所有记录

    • 1

      查询Score表中的所有数据。

    • 2

      从student表中查询学生姓名、年龄和成绩,结果按照年龄降序排序,年龄相同的按照成绩升序排序,下面SQL语句正确的是: A: select name, age, score from student order by age desc , score; B: select name, age, score from student order by age , score asc; C: select name, age, score from student order by 2 desc , 3 asc; D: select name, age, score from student order by 1 desc , 2;

    • 3

      已知一张表student存储在HBase中,查找student表中id:2015001的{score:math}成绩,其id作为行键,正确的命令是 A: get 'student', '2015001', 'score:math B: get 'student', '2015001', {COLUMN=>'score:math'} C: get 'student', '2015001', {COLUMN='score:math'} D: get 'student', '2015001', {'score:math'}

    • 4

      在如下结构体中,不正确的是( )。 A: struct student {char name[10]; float score; }; B: struct stu[5] {char name[10]; float score; }; C: struct student {char name[10]; float score; } stu[5]; D: struct {char name[10]; float score; }stu[5];