Answered step by step
Verified Expert Solution
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
Points We have information about students, courses, and enrollments stored in
the following three tables; the underlined attributes 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 and obtained at least B Test your program using instances of
the above tables that contain information for at least students, courses, and
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 text files
for part a and create data as relationstables 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.. Points We have information about students, courses, and enrollments stored in
the following three tables; the underlined attributes 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 and obtained at least B Test your program using instances of
the above tables that contain information for at least students, courses, and
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 text files
for part a and create data as relationstables 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
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