DBMS PR 2
DBMS PR 2
Create Tables:
NOTE:Insert 10 records
5. Write a query to delete Student 2 (Jane Smith) from the Students table.
6. Write a query to count the total number of students in the Students table.
7. Write a query to count the total number of courses in the Courses table.
8. Write a query to find the average number of credits across all courses in the Courses
table.
first_name VARCHAR(50),
last_name VARCHAR(50),
gender VARCHAR(10),
email VARCHAR(100)
);
course_name VARCHAR(100),
course_code VARCHAR(20)
);
WHERE student_id = 2;
6. Write a query to count the total number of students in the Students table.
FROM Student1;
7. Write a query to count the total number of courses in the Courses table.
FROM Courses1;
8. Write a query to find the average number of credits across all courses in the Courses
table.
FROM Courses;