ITS 410 Module 5: Mastery Exercise
Ques 1 / 1 pts tion 1 Which of the following is a common reason for using the IF function with the GROUPING function? To replace the nulls that are generated by WITH ROLLUP with literal values. To replace the nulls in grouped columns with literal values. This study source was downloaded by from CourseH on :28:06 GMT -06:00 11/12/22, 10:25 PM Module 5: Mastery Exercise: 22FD-ITS410-1 To add a summary row for each group only if the group has more than one row. To add a summary row for the result set only if the result set has more than one row. Correct! To replace the nulls that are generated by WITH ROLLUP with literal values use the IF function with the GROUPING function. Ques 1 / 1 pts tion 2 Expressions coded in the HAVING clause: can use either aggregate search conditions or non-aggregate search conditions can use aggregate search conditions but can’t use non-aggregate search conditions can use non-aggregate search conditions but can’t use aggregate search conditions can refer to any column in the base tables This study source was downloaded by from CourseH on :28:06 GMT -06:00 11/12/22, 10:25 PM Module 5: Mastery Exercise: 22FD-ITS410-1 Correct! Expressions coded in the HAVING clause can use either aggregate search conditions or non-aggregate search conditions. Ques 1 / 1 pts tion 3 You can code an expression that results in a date value for all but one of the following aggregate functions. Which one is it? MIN MAX AVG COUNT Correct! AVG. function cannot be used to code expression for date value. Ques 1 / 1 pts tion 4 Which of the statements below best describes the result set returned by this SELECT statement?SELECT COUNT(DISTINCT invoice_id) AS 'count', ROUND(AVG(line_item_amount), 2) AS average_amountFROM invoice_line_items
Información del documento
- Subido en
- 28 de febrero de 2023
- Número de páginas
- 8
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas