DBMS Lab
DBMS Lab
2. Find the name and numbers of all salesmen who had more than onecustomer.
3. List all salesmen and indicate those who have and don’t have customers in
4. Create a view that finds the salesman who has the customer with the highest
order of a day.
5. Demonstrate the DELETE operation by removing salesman with id 1000. All his orders must also
bedeleted.
Experiment 6
2. Find the movie names where one or more actors acted in two or moremovies.
3. List all actors who acted in a movie before 2000 and also in a movieafter 2015 (use
JOINoperation).
4. Find the title of movies and number of stars for each movie that has at least one
rating and find the highest number of stars that movie received. Sort the result by movie title.
Experiment 9
Consider the following relational schema for the Office of the Controller of
Examinations Application.
Student (Rollno, Name, Dob, Gender, Doa, Bcode);
Implement a check constraint for
• Gender
• Date of Admission
Implement a check constraint for grade Value Set (‘S’, ‘A’, ‘B’, ‘C’, ‘D’, ‘E’,
‘U’ );
Each branch has a set of Courses (Subjects). Each student must enroll
during a semester. Courses are offered by Departments. A course is offered
only by one department. If a student is unsuccessful in a course he/she
must enroll for the course during next session. A student has successfully
completed a course if the grade obtained by is from the list (A, B, C, D,
and E).
A student is unsuccessful if he/she have grade ‘U’ in a course.
Primary Keys are underlined.