Update DBMS/SQL/Week5/writeup.md

This commit is contained in:
Aadit Agrawal 2025-02-04 14:25:02 +05:30
parent 921e2beedd
commit cf4962a0b1

View File

@ -1 +1,16 @@
## 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.
```