DATABASE MANAGEMENT SYSTEM LAB QUESTIONS
1. create table student with attributes
Student_id int primary key, name varchar, email varchar, Marks int
i) insert 5 records and show all the inserted record
ii) Add new column phone number to student
iii) Modify the size of email to varchar(30)
2. create table student with attributes
Student_id int primary key, name varchar, email varchar, phone varchar, marks int
i) insert 5 records
ii) Update email of a student and show all the records
iii) Select student name who have marks greater than 80
iv) Delete one student
3. create table Course with attributes
Course_id int primary key, course_name
varchar, Create table student with
attributes
Student_id int primary key, name varchar, course_id int, foreign key(Course_id of Course)
i) Insert 3 records
ii) Find all course names of student_id in s01 and s02
iii) List all course names and student names together in one column
4. Create table Employee with attributes
Employee_id int primary key, Employee name varchar, Salary int
i) insert 5 records
ii) find the total number of Employees
iii) find the Sum of salary
iv) find the name of Employee with Minimum Salary
5. Using MongoDB create a table student
i) Insert 3 records
ii) display all details of student
iii) display the student of student_id = s01
iv) delete one student