Você está na página 1de 1

Practical Exam

Q. 1) Create table student with following schema.


Student (sid, sname, sex, age, year, gpa)
Apply the following constraints.
Sid should be Pk. Sname should be unique. Age should be between 18 to 25.

Q. 2) Create table courses with following schema.


Courses (course_id, name, credit, marks)
Apply following constraints.
Course_id should be PK. Name, credit must be not null. Default marks
should be 100.

Q. 3) Insert 2 tuples with appropriate data in student and course tables

Q. 4) Print the name of the student that has second highest GPA.

*************************************************************

Você também pode gostar