Question: a . A university database system needs to analyze the performance of students within the 'Computer Science' department. To facilitate this analysis, the decision has
a A university database system needs to analyze the performance of students within the 'Computer Science' department. To facilitate this analysis, the decision has been made to create a new table, csstudentperformance, that will contain records from the students table but only for those who are majoring in 'Comp. Sci. Write an SQL statement to create the csstudentperformance table based on the schema and data of the students table, ensuring it only includes students from the 'Comp. Sci. department.
b Further, it's decided that query performance on this new table csstudentperformance should be optimized. Specifically, queries are expected to frequently search by student id or by by totcred. Write SQL statements to create an index on the student id and totcred columns to optimize query performance.LAM.pdf
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
