Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. [ 2 5 Points ] We have information about students, courses, and enrollments stored in the following three tables; the underlined attribute ( s

.[25 Points] We have information about students, courses, and enrollments stored in
the following three tables; the underlined attribute(s) in each table denotes its key.
Students ={SID, SName, Program, Address}
Courses ={CID, CName, NoOfCredits}
Enrollments ={SID, CID, Semester, Year, Grade}
(a). Use a file processing approach and write a C or Java program that implements the
query Q: List the name and ID of every student who took the course Databases
in Winter 2024, and obtained at least B+. Test your program using instances of
the above tables that contain information for at least 5 students, 5 courses, and
10 enrollment records. Provide your program, test data, and the output.
(b). Use a DB approach to answer the query Q. For this, you may use any relational
DBMS. Provide your SQL query expression and the results produced.
(c). Compare the approaches A and B above in terms of the efforts involved in coding/
developing, processing, and maintenance.
Before evaluating Q, create the input data, that is, create the data as 3 text files
for part (a) and create data as relations/tables in (b). The efforts involved in
creating and maintaining the data will show further advantages of DB approach
over file processing systems an issue not considered in this question.. [25 Points] We have information about students, courses, and enrollments stored in
the following three tables; the underlined attribute(s) in each table denotes its key.
Students ={SID, SName, Program, Address}
Courses ={CID, CName, NoOfCredits}
Enrollments ={SID, CID, Semester, Year, Grade}
(a). Use a file processing approach and write a C or Java program that implements the
query Q: List the name and ID of every student who took the course Databases
in Winter 2024, and obtained at least B+. Test your program using instances of
the above tables that contain information for at least 5 students, 5 courses, and
10 enrollment records. Provide your program, test data, and the output.
(b). Use a DB approach to answer the query Q. For this, you may use any relational
DBMS. Provide your SQL query expression and the results produced.
(c). Compare the approaches A and B above in terms of the efforts involved in coding/
developing, processing, and maintenance.
Before evaluating Q, create the input data, that is, create the data as 3 text files
for part (a) and create data as relations/tables in (b). The efforts involved in
creating and maintaining the data will show further advantages of DB approach
over file processing systems an issue not considered in this question.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago