Module3 - Info Management

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/28

flashcard set

Earn XP

Description and Tags

oakyu

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

29 Terms

1
New cards

Group Functions

Operate on sets of rows to give one result per group

2
New cards

AVG and SUM

Used for numeric datas

3
New cards

AVG

COUNT

MAX

MIN

STDDEV

SUM

VARIANCE

Types of group functions

4
New cards

MIN and MAX

Use for numeric, char, and date data types

5
New cards

Count (*)

This return the number of rows in a table

6
New cards

COUNT (EXPR)

Returns the number of rows w non values fo

7
New cards

COOUT (DISTINCT expr)

Returns the number of distinct non-values of the expression

8
New cards

Group functions

This ignores null values in a column

9
New cards

NVL Function

This forces group functions to include null values

10
New cards

GROUP BY

Used to divide rows in a table into smaller groups

11
New cards

True

True or False:

All columns in the SELECT list that are not in a group functions must be in the GROUP BY clause.

12
New cards

SELECT

All columns in the ____ list that are not in a group functions must be in the GROUP BY clause.

13
New cards

TRUE

True or False:

The GROUP BY column does not have to be in the SELECT list

14
New cards

SELECT

The GROUP BY column does not have to be in the ______ list

15
New cards

Grouping by more than one column

knowt flashcard image
16
New cards

Using the GROUP BY clause on multiple columns

knowt flashcard image
17
New cards

True

True or false:

Any column or expression in the SELECT list that is not an aggregate function must be in the GROUP BY clause

18
New cards

SELECT

Any column or expression in the _____ list that is not an aggregate function must be in the GROUP BY clause

19
New cards

GROUP BY

Any column or expression in the SELECT list that is not an aggregate function must be in the ____ clause

20
New cards

True

True or False

You cannot use the WHERE clause to restrict groups.

21
New cards

WHERE

You cannot use the ___ clause to restrict groups.

22
New cards

True

True or False:

You cannot use group functions in the WHERE clause.

23
New cards

WHERE

You cannot use group functions in the ____ clause.

24
New cards

RESRICTING GROUP RESULTS

knowt flashcard image
25
New cards
  • Rows are grouped

  • GROUP function is applied

  • GROUPS matching the HAVING clause are displayed

When using the HAVING clause it restricts?

26
New cards

When using the HAVING clause

knowt flashcard image
27
New cards

ROLLUP

creates subtotals that roll up from the most

detailed

level to a grand total, using the grouping list

specified in the GROUP BY clause.

28
New cards

CUBE

is often used in queries that use columns from separate tables rather than separate columns from a single table.

29
New cards

Check how cube works

knowt flashcard image