Chapter 4 Homework

docx

School

Pennsylvania State University, Altoona *

*We aren’t endorsed by this school

Course

210

Subject

Industrial Engineering

Date

Feb 20, 2024

Type

docx

Pages

2

Uploaded by MajorTurkey1567

Report
IST 210 Reading Assignment 4 (25 points) 1. What MySQL clause is considered a “simple condition”? (2 points) WHERE clause 2. Give three (3) examples of a Comparison Operator used in MySQL commands? (3 points) = equal to < less than > Greater than 3. What operator in a MySQL command do you use to determine if a value is between two other values and is inclusive of the values (WITHOUT using an AND condition)? (2 points) between 4. List three (3) arithmetic operators that you can use to perform computations in MySQL queries? (3 points) + addition * Multiplication / Division 5. What clause in a MySQL query allows you to sort the results of the query? (2 points) Order by clause 6. List three (3) of the aggregate functions that you can apply to groups of rows in MySQL? (3 points) AVG calculates value COUNT determines number of rows MAX determines maximum value 7. What MySQL Operator is used to eliminate duplicate values in a MySQL query? (2 points) Distinct 8. For a nested query in MySQL explain the following: (5 points) a. What is Subquery? A query placed inside of another query b. What is the outer query? Uses the subquery results c. Explain how the subquery and outer query evaluate the data to find the results? i.e. which one is evaluated first.
The subquery is elevated first as the out query uses the subquery results 9. What MySQL clause allows you to group data in a particular column? (2 points) Grouping by clause 10. When grouping data what clause is used to restrict the results to those groups satisfying some condition? (2 points) Having clause 11. What MySQL operator is used to select fields that are “NULL”? (1 point) IS NULL
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help