The create table class01 ( Classno number (4), The classname varchar2 (8) ); Select * from class01; Insert into class01 values (101, 'a class'); Insert into class01 values (102, 'second class'); commit; The create table student01 ( Sno number (6), Sname varchar2 (6), Score number (3), Classno number (4) ); Insert into student01 values (1001, 'zhang, 77101); Insert into student01 values (1002, 'bill, 55102); Insert into student01 values (1003, 'Cathy', 99101); The create table score01 ( Minscore number (2), Maxscore number (3), Level01 varchar2 (3) ); The alter table score01 modify (level01 varchar2 (10)); Select * from score01; Insert into score01 values (0 ', 'fail'); Insert into score01 values (60; seven, 'pass'); Insert into score01 values (70, 'good'); Insert into score01 values (80100, 'optimal');
Question 1: e-r relation design Question 2: query the zhang SAN's score in the table level01 level
CodePudding user response:
1, the three entities, the student, class, grade level, respectively through the class ID and score associated 2, chosen by zhang SAN scores within the scope of the grading, similar score> field 1 and score CodePudding user response: