0% found this document useful (0 votes)
3 views

Query Processing Worksheets

The document outlines a worksheet on query processing related to an advanced database course. It includes a relational model with tables for Student, Enrollment, and Course, and poses two questions requiring SQL queries, relational algebra, query trees, and optimization processes. The questions focus on retrieving specific information about computer science students and identifying students who failed a particular course.

Uploaded by

Alemseged Mammo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Query Processing Worksheets

The document outlines a worksheet on query processing related to an advanced database course. It includes a relational model with tables for Student, Enrollment, and Course, and poses two questions requiring SQL queries, relational algebra, query trees, and optimization processes. The questions focus on retrieving specific information about computer science students and identifying students who failed a particular course.

Uploaded by

Alemseged Mammo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Advanced database

Worksheet on query processing


Student
StudentID Fname Mname Lname Department

Enrollment
StudentID CourseCode Grade

Course
CourseCode Course_Title Cr.Hr

For the following questions refer the above relational model.


For each questions:
A. Write SQL query
B. Write the relational algebra for the respective SQL query
C. Draw the initial query tree
D. Show step by step query optimization process.
Question #1. Select StudentId, Fname, Mname, Lname, Coursetitle, grade for
department of computer science students.
Question #2. Select StudentId for students who got F in course CoSc446

You might also like