北大“數(shù)據(jù)庫(kù)原理”上機(jī)實(shí)踐題目總結(jié)(6)

  • 發(fā)布時(shí)間:2024-09-15 16:21:23
  • 來源:本站整理
  • 閱讀:
導(dǎo)讀:
  答案:2_1
  set talk off
  clear
  use teacher
  list off
 ???
  use teacher
  average age for sex =“女” to 22
 ???“女教師的平均年齡:”
 ????22
 ????“歲”
  答案:2_2
  set talk off
  clear
  use c2
  index on c

select teacher.tno,c2.cname,c2.ctimes,sum(c2.ctimes);

from teacher,c2,tc;

where teacher.tno=tc.tno and c2.cno=tc.cno and teacher.tno='1000';

group by c2.ctimes

答案:2_4

set talk off

select teacher.tno,teacher.tname,avg(tc.grade);

from teacher,tc;

where teacher.tno=tc.tno ;

group by teacher.tno;

order by tc.grade

set talk off

close all

return

相關(guān)閱讀

熱門標(biāo)簽

關(guān)于北大“數(shù)據(jù)庫(kù)原理”上機(jī)實(shí)踐題目總結(jié)(6)文章

2021年自學(xué)考試報(bào)考入口 2021年自學(xué)考試報(bào)考入口

熱門文章