{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Practice 5

Practice 5 - ASSIGNMENT FOR AST AND ANT JUNE 2004(29th july...

This preview shows pages 1–2. Sign up to view the full content.

ASSIGNMENT FOR AST AND ANT JUNE 2004(29th july 2004) Submission date: 30 th july 2004 Practice 5 Determine the validity of the following statements. Circle either True or False. 1. Group functions work across many rows to produce one result. True/False 2. Group functions include nulls in calculations. True/False 3. The WHERE clause restricts rows prior to inclusion in a group calculation. True/False 4. Display the highest, lowest, sum, and average salary of all employees. Label the columns Maximum, Minimum, Sum, and Average, respectively. Round your results to the decimal position. Save your SQL statement in a file called p5q4.sql . Maximum Minimum Sum Average ------- ------- ----- ------- 5000 800 29025 2073 5. Modify p5q4.sql to display the minimum, maximum, sum, and average salary for each job type. Resave to a file called p5q5.sql . Rerun your query. JOB Maximum Minimum Sum Average ---------- -------- -------- ----- -------- ANALYST 3000 3000 6000 3000 CLERK 1300 800 4150 1038 MANAGER 2975 2450 8275 2758 PRESIDENT 5000 5000 5000 5000 SALESMAN 1600 1250 5600 1400 6. Write a query to display the number of people with the same job.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern