2025-02-04 14:25:02 +05:30
|
|
|
## 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.
|
|
|
|
```
|