Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Student Schema

Student Schema

Ratings: (0)|Views: 64 |Likes:
Published by Rohit Dagar

More info:

Categories:Types, Research
Published by: Rohit Dagar on Mar 01, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/01/2011

pdf

text

original

 
Sql 1 / 6 DbSchema
CREATE
USER
STUDENT
 
I DENTI FI ED
 
BY
 
STUDENT
;
CREATE
 
TABL E
 
STUDENT
.
COURSE
(COURSE_NO
NUMBER
( 8 )
NOT
 
NULL
,DESCRIPTIONVARCHAR2( 50 )
NULL
,COST
NUMBER
( 9, 2 )
NULL
,PREREQUISTE
NUMBER
( 8 )
NULL
,CREATED_BYVARCHAR2( 30 )
NOT
 
NULL
,CREATED_DATE
DATE
 
NOT
 
NULL
,MODIFIED_BYVARCHAR2( 30 )
NOT
 
NULL
,MODIFIED_DATE
DATE
 
NOT
 
NULL
,
CONSTRAI NT
PK_TABLE_0
PRI MARY
 
KEY
( COURSE_NO ));
COMMENT
 
ON
 
TABL E
 
STUDENT
.
COURSE
 
I S
 'Information of course.';
CREATE
 
TABL E
 
STUDENT
.
ENROL LMENT
(STUDENT_ID
NUMBER
( 8 )
NOT
 
NULL
,SECTION_ID
NUMBER
( 8 )
NOT
 
NULL
,ENROLL_DATE
DATE
 
NOT
 
NULL
,FINAL_GRADE
NUMBER
( 3 )
NULL
,CREATED_BYVARCHAR2( 30 )
NOT
 
NULL
,CREATED_DATE
DATE
 
NOT
 
NULL
,MODIFIED_BYVARCHAR2( 30 )
NOT
 
NULL
,MODIFIED_DATE
DATE
 
NOT
 
NULL
,
CONSTRAI NT
PK_ENROLLMENT
UNI QUE
( SECTION_ID ),
CONSTRAI NT
PK_ENROLLMENT_0
UNI QUE
( STUDENT_ID ));
COMMENT
 
ON
 
TABL E
 
STUDENT
.
ENROL LMENT
 
I S
 'Information for a student registered for a particular section of a particular cours
CREATE
 
TABL E
 
STUDENT
.
GRADE
(STUDENT_ID
NUMBER
( 8 )
NOT
 
NULL
,SECTION_ID
NUMBER
( 8 )
NOT
 
NULL
,GRADE_TYPE_CODE
CHAR
( 2 )
NOT
 
NULL
,GRADE_CODE_OCCURANCE
NUMBER
( 38 )
NOT
 
NULL
,NUMERIC_GRADE
NUMBER
( 3 )
NOT
 
NULL
,COMMENTSVARCHAR2( 2000 )
NULL
,CREATED_BYVARCHAR2( 30 )
NOT
 
NULL
,CREATED_DATE
DATE
 
NOT
 
NULL
,MODIFIED_BYVARCHAR2( 30 )
NOT
 
NULL
,MODIFIED_DATE
DATE
 
NOT
 
NULL
,
CONSTRAI NT
PK_GRADE
UNI QUE
( SECTION_ID ),
CONSTRAI NT
PK_GRADE_0
UNI QUE
( GRADE_TYPE_CODE ),
CONSTRAI NT
PK_GRADE_1
UNI QUE
( STUDENT_ID ));
COMMENT
 
ON
 
TABL E
 
STUDENT
.
GRADE
 
I S
 'The individual grades a student received for a particular section(class)';
CREATE
 
TABL E
 
STUDENT
.
GRADE_CONVERSI ON
(LETTER_GRADEVARCHAR2( 2 )
NOT
 
NULL
,GRADE_POINT
NUMBER
( 3, 2 )
NOT
 
NULL
,MAX_GRADE
NUMBER
( 3 )
NOT
 
NULL
,MIN_GRADE
NUMBER
( 3 )
NOT
 
NULL
,CREATED_BYVARCHAR2( 30 )
NOT
 
NULL
,CREATED_DATE
DATE
 
NOT
 
NULL
,MODIFIED_BYVARCHAR2( 30 )
NOT
 
NULL
,MODIFIED_DATE
DATE
 
NOT
 
NULL
,
CONSTRAI NT
PK_TABLE_6
PRI MARY
 
KEY
( LETTER_GRADE ));
COMMENT
 
ON
 
TABL E
 
STUDENT
.
GRADE_CONVERSI ON
 
I S
 'Converts a number grade to a letter grade.';
CREATE
 
TABL E
 
STUDENT
.
GRADE_TYPE
(GRADE_TYPE_CODE
CHAR
( 2 )
NOT
 
NULL
,DESCRIPTIONVARCHAR2( 50 )
NOT
 
NULL
,CREATED_BYVARCHAR2( 30 )
NOT
 
NULL
,CREATED_DATE
DATE
 
NOT
 
NULL
,MODIFIED_BYVARCHAR2( 30 )
NOT
 
NULL
,
 
Sql 2 / 6 DbSchema
e(class).';
 
Sql 3 / 6 DbSchema
_
CONSTRAI NT
PK_TABLE_5
PRI MARY
 
KEY
( GRADE_TYPE_CODE ));
COMMENT
 
ON
 
TABL E
 
STUDENT
.
GRADE_TYPE
 
I S
 'Lookup table for a grade type(code) and its description';
CREATE
 
TABL E
 
STUDENT
.
GRADE_TYPE_ WEI GHT
(SECTION_ID
NUMBER
( 8 )
NOT
 
NULL
,GRADE_TYPE_CODE
CHAR
( 2 )
NOT
 
NULL
,NUMBER_PER_SECTION
NUMBER
( 3 )
NOT
 
NULL
,PERCENT_OF_FINAL_GRADE
NUMBER
( 3 )
NOT
 
NULL
,DROP_LOWEST
CHAR
( 1 )
NOT
 
NULL
,CREATED_BYVARCHAR2( 30 )
NOT
 
NULL
,CREATED_DATE
DATE
 
NOT
 
NULL
,MODIFIED_BYVARCHAR2( 30 )
NOT
 
NULL
,MODIFIED_DATE
DATE
 
NOT
 
NULL
);
CREATE
 
I NDEX
IDX_GRADE_TYPE_WEIGHT
ON
 
STUDENT
.
GRADE_TYPE_ WEI GHT
( GRADE_TYPE_CODE );
COMMENT
 
ON
 
TABL E
 
STUDENT
.
GRADE_TYPE_ WEI GHT
 
I S
 'Information on how the final grade for a particular section is computed; for
CREATE
 
TABL E
 
STUDENT
.
I NSTRUCTER
(INSTRUCTER_ID
NUMBER
( 8 )
NOT
 
NULL
,SALUTATIONVARCHAR2( 5 )
NULL
,FIRST_NAMEVARCHAR2( 25 )
NULL
,LAST_NAMEVARCHAR2( 25 )
NULL
,STREET_ADDRESSVARCHAR2( 50 )
NULL
,ZIPVARCHAR2( 5 )
NULL
,PHONEVARCHAR2( 15 )
NULL
,CREATED_BYVARCHAR2( 30 )
NOT
 
NULL
,CREATED_DATE
DATE
 
NOT
 
NULL
,MODIFIED_BYVARCHAR2( 30 )
NOT
 
NULL
,MODIFIED_DATE
DATE
 
NOT
 
NULL
,
CONSTRAI NT
PK_TABLE_3
PRI MARY
 
KEY
( INSTRUCTER_ID ),
CONSTRAI NT
PK_INSTRUCTER
UNI QUE
( ZIP ));
COMMENT
 
ON
 
TABL E
 
STUDENT
.
I NSTRUCTER
 
I S
 'Profile information for an instructer.';
CREATE
 
TABL E
 
STUDENT
.
SECTI ON
(SECTION_ID
NUMBER
( 8 )
NOT
 
NULL
,COURSE_NO
NUMBER
( 8 )
NOT
 
NULL
,SECTION_NO
NUMBER
( 3 )
NOT
 
NULL
,START_DATE_TIME
DATE
 
NULL
,LOCATIONVARCHAR2( 50 )
NULL
,INSTRUCTOR_ID
NUMBER
( 8 )
NOT
 
NULL
,CAPACITY
NUMBER
( 3 )
NULL
,CREATED_BYVARCHAR2( 30 )
NOT
 
NULL
,CREATED_DATE
DATE
 
NOT
 
NULL
,MODIFIED_BYVARCHAR2( 30 )
NOT
 
NULL
,MODIFIED_DATE
DATE
 
NOT
 
NULL
,
CONSTRAI NT
PK_TABLE_1
PRI MARY
 
KEY
( SECTION_ID ),
CONSTRAI NT
PK_SECTION
UNI QUE
( COURSE_NO ));
COMMENT
 
ON
 
TABL E
 
STUDENT
.
SECTI ON
 
I S
 'Information for an individual section(class) of a particular course';
CREATE
 
TABL E
 
STUDENT
.
STUDENT
(STUDENT_ID
NUMBER
( 8 )
NOT
 
NULL
,SALUTATIONVARCHAR2( 5 )
NULL
,FIRST_NAMEVARCHAR2( 25 )
NULL
,LAST_NAMEVARCHAR2( 25 )
NOT
 
NULL
,STREET_ADDRESSVARCHAR2( 50 )
NULL
,ZIPVARCHAR2( 6 )
NOT
 
NULL
,PHONEVARCHAR2( 15 )
NULL
,EMPLOYERVARCHAR2( 50 )
NULL
,REGISTRATION_DATE
DATE
 
NOT
 
NULL
,CREATED_BYVARCHAR2( 30 )
NOT
 
NULL
,CREATED_DATE
DATE
 
NOT
 
NULL
,

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->