1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
| create table student( sno char(8), sname varchar(8), ssex char(2), sage int, sdept varchar(20) );
create table course( cno char(3), cname varchar(20), cpno char(3), ccredit numeric(3,1) );
create table sc( sno char(8), cno char(3), grade numeric(4,1) );
INSERT INTO STUDENT VALUES('08001','张三','男','18','CS'); INSERT INTO STUDENT VALUES('08002','李四','女','19','IS'); INSERT INTO STUDENT VALUES('08003','王五','男','20','MA'); INSERT INTO STUDENT VALUES('08004','李华','女','17','CS'); INSERT INTO STUDENT VALUES('08005','刘晨','男','18','IS'); INSERT INTO STUDENT VALUES('08006','刘丹丹','女','17','MA'); INSERT INTO STUDENT VALUES('08007','刘力','男','21','CS'); INSERT INTO STUDENT VALUES('08008','王江','男','19','CS'); INSERT INTO STUDENT VALUES('08009','高晓','男','20','IS'); INSERT INTO STUDENT VALUES('08010','张丽','女','19','CS'); INSERT INTO STUDENT VALUES('08011','胡天','女','20','MA'); INSERT INTO STUDENT VALUES('08012','叶子农','男','21','CS'); INSERT INTO STUDENT VALUES('08013','丁元英','男','19','IS'); INSERT INTO STUDENT VALUES('08014','欧阳雪','女','21','MA');
INSERT INTO COURSE VALUES('001','数据库','005','4'); INSERT INTO COURSE VALUES('002','高等数学','','2'); INSERT INTO COURSE VALUES('003','信息系统','001','4'); INSERT INTO COURSE VALUES('004','操作系统','006','3'); INSERT INTO COURSE VALUES('005','数据结构','007','4'); INSERT INTO COURSE VALUES('006','数据处理','','2'); INSERT INTO COURSE VALUES('007','C语言','006','4'); INSERT INTO COURSE VALUES('008','软件工程','001','4'); INSERT INTO COURSE VALUES('009','离散数学','002','4.5'); INSERT INTO COURSE VALUES('010','软件设计模式','008','3');
INSERT INTO SC VALUES('08001','002','100'); INSERT INTO SC VALUES('08001','003','95'); INSERT INTO SC VALUES('08001','004','90'); INSERT INTO SC VALUES('08001','006','100'); INSERT INTO SC VALUES('08002','002','98'); INSERT INTO SC VALUES('08002','003',NULL); INSERT INTO SC VALUES('08003','001','99'); INSERT INTO SC VALUES('08003','002','80'); INSERT INTO SC VALUES('08003','003','98'); INSERT INTO SC VALUES('08003','004','95'); INSERT INTO SC VALUES('08003','005','90'); INSERT INTO SC VALUES('08003','006','100'); INSERT INTO SC VALUES('08003','007','98'); INSERT INTO SC VALUES('08003','008','96'); INSERT INTO SC VALUES('08003','009','99'); INSERT INTO SC VALUES('08003','010','95'); INSERT INTO SC VALUES('08004','001','90'); INSERT INTO SC VALUES('08004','002','95'); INSERT INTO SC VALUES('08004','003','90'); INSERT INTO SC VALUES('08004','004','100'); INSERT INTO SC VALUES('08004','005','98'); INSERT INTO SC VALUES('08004','006','96'); INSERT INTO SC VALUES('08004','007','99'); INSERT INTO SC VALUES('08004','008','90'); INSERT INTO SC VALUES('08004','009','98'); INSERT INTO SC VALUES('08004','010','98'); INSERT INTO SC VALUES('08005','001',NULL); INSERT INTO SC VALUES('08005','002','37'); INSERT INTO SC VALUES('08005','003','86'); INSERT INTO SC VALUES('08005','004','94'); INSERT INTO SC VALUES('08005','005','50'); INSERT INTO SC VALUES('08013','001','30'); INSERT INTO SC VALUES('08013','003','40'); INSERT INTO SC VALUES('08013','004','23'); INSERT INTO SC VALUES('08013','006','45'); INSERT INTO SC VALUES('08005','006','95'); INSERT INTO SC VALUES('08005','007','97'); INSERT INTO SC VALUES('08005','009','87'); INSERT INTO SC VALUES('08006','003',null); INSERT INTO SC VALUES('08008','001','50'); INSERT INTO SC VALUES('08008','003','80'); INSERT INTO SC VALUES('08009','001','89'); INSERT INTO SC VALUES('08009','004','90'); INSERT INTO SC VALUES('08010','001','99'); INSERT INTO SC VALUES('08010','002','80'); INSERT INTO SC VALUES('08010','003','98'); INSERT INTO SC VALUES('08010','004','95'); INSERT INTO SC VALUES('08010','005','100'); INSERT INTO SC VALUES('08010','006','96'); INSERT INTO SC VALUES('08010','007','99'); INSERT INTO SC VALUES('08010','008','50'); INSERT INTO SC VALUES('08010','009','86'); INSERT INTO SC VALUES('08010','010','88'); INSERT INTO SC VALUES('08011','001','89'); INSERT INTO SC VALUES('08011','004','58'); INSERT INTO SC VALUES('08011','005','97'); INSERT INTO SC VALUES('08011','008','86'); INSERT INTO SC VALUES('08011','010','94'); INSERT INTO SC VALUES('08012','001','37'); INSERT INTO SC VALUES('08012','002','86'); INSERT INTO SC VALUES('08012','003','94'); INSERT INTO SC VALUES('08012','004','50'); INSERT INTO SC VALUES('08012','006',null); INSERT INTO SC VALUES('08012','007','46'); INSERT INTO SC VALUES('08012','009','90'); INSERT INTO SC VALUES('08012','010','98'); INSERT INTO SC VALUES('08014','005','20'); INSERT INTO SC VALUES('08014','006','46'); INSERT INTO SC VALUES('08014','009','51');
|