Dbms Lab Exercises1
Dbms Lab Exercises1
Smith 17 1 CS
Brown 8 2 CS
Table: Course
CourseName CourseNumber CreditHours Department
Intro to computer science CS1310 4 CS
Data Structure CS3320 4 CS
Discrete Mathematics MATH2410 3 MATH
Database CS3380 3 CS
Table: Section
SectionIndentifier CourseNumber Year Instructor
85 MATH2410 98 King
92 CS1310 98 Andreson
102 CS3320 99 Knuth
112 MATH2410 99 Chang
119 CS1310 99 Andreson
135 CS3380 99 Stone
Table: Grade_report
Regno Section_identifier Grade
17 112 B
17 119 C
8 85 A
8 92 A
8 102 B
8 135 A
Create Tables using create statement
Insert rows to individual tables using insert statement
Alter table section add new field section and update the records
Delete brown’s grade report
Drop the table section
Activity 2: (Select clause, Arithmetic Operators)
Database: employee
Create Following tables and insert tuples with suitable constraints
EMPLOYEE
EMPID FIRSTANAME LASTNAME Hire_Date ADDRESS CITY
Database: Library
Create Following tables and insert tuples with suitable constraints
Table: Books
Book_I Book_name Author_Name Publishers Price Type Quantity
d
Table : Issued
Book_Id Quantity_Issued
T0001 4
C0001 5
F0001 2
T0002 5
F0002 8
Database : Lab
Create Following table and insert tuples with suitable constraints
Table : Equipment_Details
Database : subject
Create Following table and insert tuples with suitable constraints
Table – Physics
Table : Availability
Branch