401 B

Writeup

Table Creation

Student Table Creation - RegNo is the primary key as defined by the question.

SQL> create table STUDENT(regno varchar(20),name varchar(50),major varchar(20),bdate date,constraint pkeySTUDENT primary key(regno));

Table created.

Course Table Creation

SQL> create table COURSE(course# int,cname varchar(30),dept varchar(30));

Table created.