You are on page 1of 7

Nama : Silvana Aghata Rosita Siregar

Npm : 200810043
Sistem Basis Data
Sistem Informasi B
CHAPTER 5 GROUPING
The GROUP BY Clause
Listing 5.1: Grouping on one column

Listing 5.2: Grouping on two columns


The HAVING Keyword
Listing 5.3: Using the HAVING condition

Listing 5.4: Grouping with WHERE


Listing 5.5: Error with WHERE on the aggregate

CHAPTER 7 SUBQUERIES
Single-Row Subqueries
Listing 7.1: A subquery that returns a single value
Listing 7.2: Single-row subquery error

Multiple-Row Subqueries
Listing 7.3: Using a multiple-row subquery
The ALL and ANY Operators
Listing 7.4: Using ALL

Listing 7.5: Using ALL for equal comparison

Subqueries Returning Rows Having the Same Value


Listing 7.6: Using the equal comparison to ANY value
Multiple Nested Subqueries
Listing 7.7: Query with multiple nested subqueries

Correlated Subqueries
Listing 7.8: Using a correlated subquery

You might also like