Question

In: Computer Science

what aggregate functions priobably would be usefull to school administrators to analyze student population and why?...

what aggregate functions priobably would be usefull to school administrators to analyze student population and why? (school environment database management)

Solutions

Expert Solution

// Hope this answer would be beneficial for u

// If u face any doubts feel free to ask in comments as I would be very happy to solve them

In database management an aggregate function is a function where the values of multiple rows are grouped together as input on certain criteria to form a single value of more significant meaning.

Some of the various aggregate functions are-:

1) Count()
2) Sum()
3) Avg()
4) Min()
5) Max()

These could be used in a normal school management system in counting like total students in a school or in a particular stream or class, calculating average number of boys in each class, class with minimum number of boys/girls or the maximum number of boys/girls etc.

Suppose we have given data-:

Total     Section     Number of boys      Number of girls
---------------------------------------------------------
120       A            80                      60
90        B            40                      50
105       C            60                      45
105       D            70                      35
85        E            60                      25  
95        F            50                      45  

// The normal way to write a query is like this:

SELECT COUNT(*) AS NumStudents FROM table_name;

i) If we want to calculate the number of sections with equal/distinct number of students then count() can be used--

Count(Distinct Total): Return number of distinct Non Null values over the column Total

ii) If we want to calculate the sum of Total students where total is same/distinct then sum() can be used---

sum(Total): Sum all Non Null values of Column salary

sum(Distinct Total): Sum of all distinct Non-Null values

iii) Avg(Number of girls) = Sum(number of girls) / count(number of girls)

And also

Min(Number of boys): Minimum value in the Number of boys column except NULL i.e., 40.
Max(Number of girls): Maximum value in the Number of girls column i.e., 60.

This was just a example to show how these aggregates can be used in the school management system to solve queries regarding population of students....

// In case u have a doubt please ask in the comment section

// Thank You


Related Solutions

Why would an unexpected failover be of concern to administrators?
Why would an unexpected failover be of concern to administrators?
Analyze the compenents of aggregate demand in Keynes's GeneralTheory.Use the related functions and diagrams.Why is...
Analyze the compenents of aggregate demand in Keynes's General Theory.Use the related functions and diagrams.Why is aggregate demand unstable in absence of government stabilization policies in Keynes's view?
The student population of the Corona High School is 750. The school has 25 standard classrooms....
The student population of the Corona High School is 750. The school has 25 standard classrooms. Assuming a 5-day school week with solid waste pickups on Monday and Thursday, determine the lowest cost combination of waste containers required. Assume waste is generated at a rate of 0.10 kg/cap·day plus 4 kg per room per day and that the density of uncompacted solid waste is 120.0 kg/m3. Standard container sizes available and weekly rental fees are: 1.5 m3 @ $45 /...
The average expenditure per student for a certain school year was $10337 with a population standard...
The average expenditure per student for a certain school year was $10337 with a population standard deviation of $1560. A survey for the next school year of 150 randomly selected students resulted in a sample mean of $10798. At α =0.01 level of significance, can it be concluded that the average expenditure has changed? (10 pts) Suppose when you were visiting universities and deciding which to attend, the admission officers at Tennessee Wesleyan(TW) claimed TW students graduate in 4.25 years...
if you want to increase aggregate supply what policy would you use? why?
if you want to increase aggregate supply what policy would you use? why?
1. Using Aggregate Demand and Aggregate Supply depict what will happen should the population decide to...
1. Using Aggregate Demand and Aggregate Supply depict what will happen should the population decide to save more. (Rationalize and depict two correct answers on separate graphs) 2. Using Aggregate Demand and Aggregate Supply depict what will happen should industry invest more in capital equipment.
what would it take for aggregate output to always be absorbed by aggregate demand, so that...
what would it take for aggregate output to always be absorbed by aggregate demand, so that overproduction will never be a problem? Does the "invisible hand" constitute reasonable metaphor for describing the behavior of economies?
When functionalists analyze a situation, they identify its functions and dysfunctions. What functions nad dysfunctions of...
When functionalists analyze a situation, they identify its functions and dysfunctions. What functions nad dysfunctions of maquiladoras do you see? (Maquiladoras South of the Border)
Explain the finite element method for stress analysis as you would to a high school student...
Explain the finite element method for stress analysis as you would to a high school student who is interested in becoming an engineer. Note that this could be the deciding factor for the student to choose Engineering at University. As such keep your answer relevant, interesting and succinct (furthermore, the student is young so they get bored easily...). [Word limit: 200]
How would you expect a fall in a country's population to alter its aggregate money demand...
How would you expect a fall in a country's population to alter its aggregate money demand function? Would it matter if the fall in population were due to a fall in the number of households or to a fall in the average size of a household? A.There would be an increase in money demand because fewer people will need to produce and consume GNP. The increase in money demand would be larger if the decrease in population was due to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT