Update DBMS/SQL/Week5/writeup.md
This commit is contained in:
		
							parent
							
								
									921e2beedd
								
							
						
					
					
						commit
						cf4962a0b1
					
				
					 1 changed files with 16 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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.
 | 
			
		||||
```
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue