Question

In: Computer Science

You may use Microsoft access or Derby DB Please I need an answer for this problem,...

You may use Microsoft access or Derby DB

Please I need an answer for this problem, I have posted this problem 5 times.

Put aggregate without condition for the following 6 queries:

  • Queries:

    -- Query 1
    -- Find the details of students who was born after 31st december 2004.
    select * from Student_Information where DOB>"2004-12-31";

    -- Query 2
    -- Find all student details whose first name begins with J.
    select * from Student_Information where FirstName like 'J%';

    -- Query 3
    -- Find the total fees for each FeeID.
    select FeeID,(OrientationFee+CampusFee+LabFee+CommencementsFee) as "Total Fees" from Fees;

    -- Query 4
    -- Find all subject IDs whose Subject1 is botany.
    select subjectID from Subjects where Subject1="Botany";

    -- Query 5
    -- Find all gradeIDs with 10 points for both quiz and exam.
    select GradeID from Grades where Quizzes=10 and exams=10;

    -- Query 6
    -- Find the feeid and orientation fees where orientation fees is beween 500 and 1300
    select FeeId,OrientationFee from Fees where OrientationFee BETWEEN 500 AND 1300;

Schema:

Student's Information

Fees

Subjects

Grades

Student’s Information (ID, Firstname, Lastname, DOB);

Fees (ID, Orientationfees, Campusfees, Labfees, Commencementfees);

Subjects (ID, Subject1, Subject2, Subject3, Subject4);

Grades (ID, Quizzes, Classwork, Homework, Exams, Finalgrade);

Student's Information

ID

Firstname

Lastname

DOB

Fees

ID

Orientationfees

Campusfees

Labfees

Commencementfees

Subjects

ID

Subjectname

Grades

ID

Quizzes

Classwork

Homework

Exams

Finalgrade

Solutions

Expert Solution

Answer.

Step 1

An aggregate functions are used to calculate the summary values from the data in a particular column. An aggregate function return a single value. They are: SUM, AVG, MAX, MIN and COUNT.

1. In query 1, we can use aggregate function to count the number of students, who was born after 31st december 2004.

select COUNT(ID) from Student_Information where DOB>"2004-12-31";

2. In query 2, we can use aggregate function count, to count the number of students whose first name begins with J.

select COUNT(ID) from Student_Information where FirstName like 'J%';

3. In query 3, we can use aggregate sum() function to find the total fees for each FeeID.
select FeeID, SUM(OrientationFee+CampusFee+LabFee+CommencementsFee) as "Total Fees" from Fees;

Step 2

4. In query 4, we can use aggregate count() function to count the subject IDs whose Subject1 is botany.
select COUNT(subjectID) from Subjects where Subject1="Botany";

5. In query 5, we can use aggregate count() function to count the gradeIDs with 10 points for both quiz and exam.
select COUNT(GradeID) from Grades where Quizzes=10 and exams=10;

6. In query 6, we can use aggregate avg() function to find the average of all orientation fees where orientation fees is between 500 and 1300.
select AVG(OrientationFee) from Fees where OrientationFee BETWEEN 500 AND 1300;

Thank you.


Related Solutions

-please answer this written out. Do not use excel I cannot access it. i need to...
-please answer this written out. Do not use excel I cannot access it. i need to know how to do it on paper- Deluxe River Cruises operates a fleet of river vessels. The fleet has two types of vessels: A type A vessel has 60 deluxe cabins and 160 standard cabins, whereas a type B vessel has 80 deluxe cabins and 120 standard cabins. Under a charter agreement with the Odyssey Travel Agency, Deluxe River Cruise sis to provide Odyssey...
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please). (i need...
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please). (i need references URL Link) General Question ** How to perform logistic regression in SPSS?
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need...
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need your reference URL Link) 1. Discuss charismatic traits and behaviors of a leader. How a person can manage relationship in workplace? i need more explain ( i need Unique answer, please) *** Please i need Unique answer, if you don't have unique answer don't answer ***
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need...
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need your reference URL Link) 1. Discuss charismatic traits and behaviors of a leader. How a person can manage relationship in workplace? i need more explain ( i need Unique answer, please) *** Please i need Unique answer, if you don't have unique answer don't answer ***
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need...
( i need Unique answer, don't copy and paste, please) (dont' use handwriting, please) (i need your reference URL Link) 1. Discuss charismatic traits and behaviors of a leader. How a person can manage relationship in workplace? i need more explain ( i need Unique answer, please) *** Please i need Unique answer, if you don't have unique answer don't answer ***
please can you complete my answer .. Please, i need Unique answer, Use your own words...
please can you complete my answer .. Please, i need Unique answer, Use your own words (don't copy and paste). Please, don't use handwriting, Use your keyboard. Q1: 1. Explain with the help of suitable examples / graph the following:     a. ‘Production Possibility Curve’      b. The concept of ‘Opportunity Cost’      c. Distinguish between ‘Quantity Demanded’ and ‘Demand Schedule’ Answer : this is my answer i want you to complete my answer (with the help of suitable examples...
Please do not use Excel to answer this. I need the computations as we are not...
Please do not use Excel to answer this. I need the computations as we are not allowed to use excel. Sequential Method Jasmine Company manufactures both pesticide and liquid fertilizer, with each product manufactured in separate departments. Three support departments support the production departments: Power, General Factory, and Purchasing. Budgeted data on the five departments are as follows: Support Departments Producing Departments Power General Factory Purchasing Pesticide Liquid Fertilizer Overhead $80,000 $312,000    $165,000    $78,500 $107,400 Square feet 1,500...
PLEASE USE THE FLOWORITHM APPLICATION FOR THE ANSWER . I need that not a flowchart .Design...
PLEASE USE THE FLOWORITHM APPLICATION FOR THE ANSWER . I need that not a flowchart .Design the logic for a program that takes in three numbers from the user. Find the largest of the three numbers and output the largest number.
You may need to use the appropriate technology to answer this question. As part of a...
You may need to use the appropriate technology to answer this question. As part of a study designed to compare hybrid and similarly equipped conventional vehicles, a group tested a variety of classes of hybrid and all-gas model cars and sport utility vehicles (SUVs). Suppose the following data show the miles-per-gallon rating obtained for two hybrid small cars, two hybrid midsize cars, two hybrid small SUVs, and two hybrid midsize SUVs; also shown are the miles per gallon obtained for...
please i need unique answer , don't copy and paste ,, don't use handwriting.. can you...
please i need unique answer , don't copy and paste ,, don't use handwriting.. can you complete my answer , i need you answer b only Question: 3- Al Yamamah Steel Industries Co. uses the step method for allocating the costs of its service departments to operating departments. The company has two support departments (Human Resource and Information Technology) and two operating departments (Hot Rolled Hollow Steel and Cold Rolled Hollow Steel). Al Yamamah Steel Industries Co. decided to allocate...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT