diff --git a/DBMS/SQL/Week5/writeup.md b/DBMS/SQL/Week5/writeup.md index b37f7c3..5adcd88 100644 --- a/DBMS/SQL/Week5/writeup.md +++ b/DBMS/SQL/Week5/writeup.md @@ -1 +1,16 @@ -## Writeup \ No newline at end of file +## Writeup + +### Table Creation + +**Student Table Creation** - RegNo is the primary key as defined by the question. +```sql +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 +SQL> create table COURSE(course# int,cname varchar(30),dept varchar(30)); + +Table created. +``` \ No newline at end of file