Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A state university stores all student data in a database. The collected data inc

ID: 3861492 • Letter: A

Question

A state university stores all student data in a database. The collected data includes each student's first name, last name, age, gender, major, nationality, and so forth The process component of the information system performs all sorts of analysis on this data For example, the university's DBMS has a built-in query capability that can generate the following information: How many students are in each major? Which major is the fastest growing? What is the average age of the student body? Among the international students, which country is home to the highest number of students? What is the ratio of male to female students in each major? a. Explain how the university could use the information effectively? b. Given an example of three additional queries the university should run and why?

Explanation / Answer

1) select major,count(*) as Total_Students from students group by major;
2) select top(1) major (from select major,count(*) as Total_Students from students group by major order by Total_Students desc);
3) select avg(age) from students
4) select top(1) from nationality(select nationality, count(*) As Total_Students from students where nationality != 'Country' group by nationality order by Total_Students dec )
5) SELECT major, sum(case when `Gender` = 'MALE' then 1 else 0 end)/count(*) as Ratio FROM students group by major;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote