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

  • 發(fā)布時間:2024-09-15 16:21:23
  • 來源:本站整理
  • 閱讀:
導(dǎo)讀:
  答案:4_1
  clear
  set talk off
  use s
  list off
 ?。?br />  ?。?br />   average age for sex=“w” to a
 ?。俊芭骄挲g:”
 ?。??str(a)
 ????“歲”
  set talk on
  return
  答案:4_2(需另建一個臨時表:cc.dbf 屬性為: cname ,sum,cxi )
  c

答案:4_2(需另建一個臨時表:cc.dbf 屬性為: cname ,sum,cxi )

clear 例如: 高數(shù) 1 物理

set talk off

use cc

index on teacher to liu

total on teacher to yu fields 課程數(shù)

use yu

list off

use cc

sum 課程數(shù) to a

?“課程總數(shù):”

?? str(a)

答案:4_3

clear

set talk off

select sname,cname,grade;

from s,sc,c1;

where s.sno=sc.sno and c1.cno=sc.cno and c1.cno='1000';

order by sc.grade desc

set talk on

答案:4_4

clear

set talk off

select s.sno,s.sname,c1.cname,sc.grade;

from s,c1,sc;

where s.sno=sc.sno and c1.cno=sc.cno;

and s.age in(select age;

from s;

where sname='古天樂')

set talk on

相關(guān)閱讀

熱門標(biāo)簽

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

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

熱門文章