Question
The relations of a school database are written below: STUDENT (sid, lastname, firstname, major, entrydate, gpa, total_credits, probation_date) COURSE (course number, dept id, course_name) DEPARTMENT
The relations of a school database are written below: STUDENT (sid, lastname, firstname, major, entrydate, gpa, total_credits, probation_date)
COURSE (course number, dept id, course_name)
DEPARTMENT (dept id, department_name, address)
INSTRUCTOR ( instructor_id, firstname, lastname, dept_id)
SECTION (section_id, section_number, course_number, dept_id, semester, instructor_id)
TRANSCRIPT ( sid, section_id, credits, grade)
REQUIREMENT ( req_id, major, course_number, dept_id)
Write the following queries using SQL for the database given.
1. Insert a tuple into transcript indicating that Kenny is taking course number 111, dept id 15 in Fall2020.
2. Set the grade of student named Kenny for course number 111, dept id 15 offered in Fall2020 to F.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started