SlideShare a Scribd company logo
REPORTING AGGREGATED DATA, USING GROUP
FUNCTIONS.
OBJECTIVES
At the end of this lesson, you will learn:
 How to identify the available group functions
 How to describe the use of group functions in
select statements
 Grouping data, by using the Group By clause and
 How to include or exclude grouped rows, by
using the having clause.
WHAT ARE GROUP FUNCTIONS?
 Group functions are SQL functions, which operate
on a GROUP of rows, and return a result.
 This group of rows may be an entire column or a
column, split into smaller groups.
EXAMPLE
 This example uses the GROUP function called COUNT, to
count the number of employees that earn a salary
from the company.
AVG & SUM
 The AVG and Sum keyword is used to find the
average and sum –respectively- of a group of
numbers.
EXERCISE
 Query your database for the average salary of all
the employees in the department with where
department_id=90.
MIN & MAX
 The MAX and the MIN functions, will display the
maximum and minimum –respectively- of all the
values in the specified group, or column.
EXAMPLE
STDDEV & VARIANCE
 STDDEV and VARIANCE are used to find the standard
deviation and the variance, of the numbers in the
specified column or group.
COUNT
 The COUNT function counts the number of rows in
the stated group or column. It has three different
variations but each performs the same function
of counting the number of rows in the group.
COUNT (COLUMN_NAME)
 This SQL statement COUNTs all the rows in the
stated column as returns their total number.
FORMAT:
SELECT COUNT (column_name)
FROM table_name;
EXAMPLE:
 This SQL statement COUNTs all the rows in the
employees table and returns the number of rows.
EXAMPLE:
 The SQL statement counts the number of rows in
the manager _id column.
COUNT DISTINCT (COLUMN_NAME)
 Where the same value occurs many times in a
column, the Oracle server COUNTS them all as one
value when the SELECT COUNT keyword is used.
 The Oracle server would count the different
values in the manager_id column instead of the
number of rows.
 From the result of this query, it is obvious, that all
the 107 employees, share only 18 manager-ids
 The DISTINCT keyword, when used with a group
function, will specify only the different rows
available in that group.
 The opposite of the DISTINCT keyword, is the ALL
keyword, and it operates on all the rows in the
group, including duplicates. Only null values are
exempted.
GROUPING DATA
 Initially we said group functions are functions
that operate on a group of rows.
 We also said these group of rows could be an
entire column.
 When we want to specify the order in which the
output of a GROUP function is processed, we use the
GROUP BY keyword.
EXAMPLE:
 The Oracle server goes to the department_id
column and fetches the distinct departments.
 Afterwards, the Oracle server comes to the salary
column and begins to group the rows in the
salary column by their various departments, and
then finally, for each different department_id, the
Oracle server returns the minimum salary.
 When using the GROUP BY clause, one general rule is
that GROUP BY is always followed by a column
name.
 No column alias can be used with the GROUP BY clause.
EXAMPLE:
NESTED GROUPS
The situation may demand a nested GROUP, also referred
to as a sub GROUP.
EXAMPLE:
 In the event of Nested GROUPS, the inner GROUP function
is SELECT before the outer GROUP function.
INCLUDING & EXCLUDING ROWS
 When restricting rows in a SELECT clause, we use the
WHERE keyword. However, when restricting rows in
a GROUP BY clause, we use the HAVING keyword.
 The GROUP BY clause will only return the rows that
meet the HAVING condition.
EXAMPLE:
 All the rows displayed by the Oracle server, have
a department_id column greater than 30.

More Related Content

What's hot

Aggregating Data Using Group Functions
Aggregating Data Using Group FunctionsAggregating Data Using Group Functions
Aggregating Data Using Group Functions
Salman Memon
 
Oracle Database Sequence
Oracle Database SequenceOracle Database Sequence
Oracle Database Sequence
Eryk Budi Pratama
 
Create table
Create tableCreate table
Create table
Nitesh Singh
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Doubly Linked List
Ninad Mankar
 
Null / Not Null value
Null / Not Null valueNull / Not Null value
Null / Not Null value
Dhirendra Chauhan
 
Visual Basic menu
Visual Basic menuVisual Basic menu
Visual Basic menu
kuldeep94
 
Database Keys
Database KeysDatabase Keys
Database Keys
Forrester High School
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
Chirag vasava
 
Data Structure and Algorithms
Data Structure and AlgorithmsData Structure and Algorithms
Data Structure and Algorithms
iqbalphy1
 
Sql joins inner join self join outer joins
Sql joins inner join self join outer joinsSql joins inner join self join outer joins
Sql joins inner join self join outer joins
Deepthi Rachumallu
 
Sql clauses by Manan Pasricha
Sql clauses by Manan PasrichaSql clauses by Manan Pasricha
Sql clauses by Manan Pasricha
MananPasricha
 
Sql subquery
Sql  subquerySql  subquery
Sql subquery
Raveena Thakur
 
11. transaction sql
11. transaction sql11. transaction sql
11. transaction sqlUmang Gupta
 
SQL Joins.pptx
SQL Joins.pptxSQL Joins.pptx
SQL Joins.pptx
Ankit Rai
 
SQL select clause
SQL select clauseSQL select clause
SQL select clause
arpit bhadoriya
 
2.0 sql data types for my sql, sql server
2.0 sql data types for my sql, sql server2.0 sql data types for my sql, sql server
2.0 sql data types for my sql, sql server
MLG College of Learning, Inc
 
Variable and constants in Vb.NET
Variable and constants in Vb.NETVariable and constants in Vb.NET
Variable and constants in Vb.NET
Jaya Kumari
 
Key and its different types
Key and its different typesKey and its different types
Key and its different types
Umair Shakir
 
Relational algebra in dbms
Relational algebra in dbmsRelational algebra in dbms
Relational algebra in dbmsshekhar1991
 

What's hot (20)

Aggregating Data Using Group Functions
Aggregating Data Using Group FunctionsAggregating Data Using Group Functions
Aggregating Data Using Group Functions
 
Oracle Database Sequence
Oracle Database SequenceOracle Database Sequence
Oracle Database Sequence
 
Create table
Create tableCreate table
Create table
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Doubly Linked List
 
Null / Not Null value
Null / Not Null valueNull / Not Null value
Null / Not Null value
 
Visual Basic menu
Visual Basic menuVisual Basic menu
Visual Basic menu
 
Database Keys
Database KeysDatabase Keys
Database Keys
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
Data Structure and Algorithms
Data Structure and AlgorithmsData Structure and Algorithms
Data Structure and Algorithms
 
Sql joins inner join self join outer joins
Sql joins inner join self join outer joinsSql joins inner join self join outer joins
Sql joins inner join self join outer joins
 
Sql clauses by Manan Pasricha
Sql clauses by Manan PasrichaSql clauses by Manan Pasricha
Sql clauses by Manan Pasricha
 
Sql subquery
Sql  subquerySql  subquery
Sql subquery
 
11. transaction sql
11. transaction sql11. transaction sql
11. transaction sql
 
SQL Joins.pptx
SQL Joins.pptxSQL Joins.pptx
SQL Joins.pptx
 
SQL select clause
SQL select clauseSQL select clause
SQL select clause
 
2.0 sql data types for my sql, sql server
2.0 sql data types for my sql, sql server2.0 sql data types for my sql, sql server
2.0 sql data types for my sql, sql server
 
Variable and constants in Vb.NET
Variable and constants in Vb.NETVariable and constants in Vb.NET
Variable and constants in Vb.NET
 
SQL_NOTES.pdf
SQL_NOTES.pdfSQL_NOTES.pdf
SQL_NOTES.pdf
 
Key and its different types
Key and its different typesKey and its different types
Key and its different types
 
Relational algebra in dbms
Relational algebra in dbmsRelational algebra in dbms
Relational algebra in dbms
 

Similar to 5. Group Functions

Group by clause mod
Group by clause modGroup by clause mod
Group by clause mod
Nitesh Singh
 
Writing Group Functions - DBMS
Writing Group Functions - DBMSWriting Group Functions - DBMS
Writing Group Functions - DBMS
Solaiman Hridoy
 
Les04
Les04Les04
Les04
Les04Les04
Lab3 aggregating data
Lab3   aggregating dataLab3   aggregating data
Lab3 aggregating data
Balqees Al.Mubarak
 
Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2
Techglyphs
 
Chapter9 more on database and sql
Chapter9 more on database and sqlChapter9 more on database and sql
Chapter9 more on database and sql
KV(AFS) Utarlai, Barmer (Rajasthan)
 
SQL select statement and functions
SQL select statement and functionsSQL select statement and functions
SQL select statement and functionsVikas Gupta
 
Oracle Advanced SQL and Analytic Functions
Oracle Advanced SQL and Analytic FunctionsOracle Advanced SQL and Analytic Functions
Oracle Advanced SQL and Analytic Functions
Zohar Elkayam
 
Oracle_Analytical_function.pdf
Oracle_Analytical_function.pdfOracle_Analytical_function.pdf
Oracle_Analytical_function.pdf
KalyankumarVenkat1
 
Advanced Sql Training
Advanced Sql TrainingAdvanced Sql Training
Advanced Sql Training
bixxman
 

Similar to 5. Group Functions (20)

Introduction to Oracle Functions--(SQL)--Abhishek Sharma
Introduction to Oracle Functions--(SQL)--Abhishek SharmaIntroduction to Oracle Functions--(SQL)--Abhishek Sharma
Introduction to Oracle Functions--(SQL)--Abhishek Sharma
 
Group by clause mod
Group by clause modGroup by clause mod
Group by clause mod
 
Les05
Les05Les05
Les05
 
Writing Group Functions - DBMS
Writing Group Functions - DBMSWriting Group Functions - DBMS
Writing Group Functions - DBMS
 
ADVANCED MODELLING.pptx
ADVANCED MODELLING.pptxADVANCED MODELLING.pptx
ADVANCED MODELLING.pptx
 
Les04
Les04Les04
Les04
 
Les04
Les04Les04
Les04
 
Les17
Les17Les17
Les17
 
Les04
Les04Les04
Les04
 
Lab3 aggregating data
Lab3   aggregating dataLab3   aggregating data
Lab3 aggregating data
 
Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2
 
Sql query [select, sub] 4
Sql query [select, sub] 4Sql query [select, sub] 4
Sql query [select, sub] 4
 
Module03
Module03Module03
Module03
 
Chapter9 more on database and sql
Chapter9 more on database and sqlChapter9 more on database and sql
Chapter9 more on database and sql
 
SQL select statement and functions
SQL select statement and functionsSQL select statement and functions
SQL select statement and functions
 
Les06
Les06Les06
Les06
 
Les18
Les18Les18
Les18
 
Oracle Advanced SQL and Analytic Functions
Oracle Advanced SQL and Analytic FunctionsOracle Advanced SQL and Analytic Functions
Oracle Advanced SQL and Analytic Functions
 
Oracle_Analytical_function.pdf
Oracle_Analytical_function.pdfOracle_Analytical_function.pdf
Oracle_Analytical_function.pdf
 
Advanced Sql Training
Advanced Sql TrainingAdvanced Sql Training
Advanced Sql Training
 

Recently uploaded

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 

Recently uploaded (20)

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 

5. Group Functions

  • 1.
  • 2. REPORTING AGGREGATED DATA, USING GROUP FUNCTIONS.
  • 3. OBJECTIVES At the end of this lesson, you will learn:  How to identify the available group functions  How to describe the use of group functions in select statements  Grouping data, by using the Group By clause and  How to include or exclude grouped rows, by using the having clause.
  • 4. WHAT ARE GROUP FUNCTIONS?  Group functions are SQL functions, which operate on a GROUP of rows, and return a result.  This group of rows may be an entire column or a column, split into smaller groups.
  • 6.  This example uses the GROUP function called COUNT, to count the number of employees that earn a salary from the company. AVG & SUM  The AVG and Sum keyword is used to find the average and sum –respectively- of a group of numbers.
  • 7. EXERCISE  Query your database for the average salary of all the employees in the department with where department_id=90.
  • 8.
  • 9. MIN & MAX  The MAX and the MIN functions, will display the maximum and minimum –respectively- of all the values in the specified group, or column. EXAMPLE
  • 10. STDDEV & VARIANCE  STDDEV and VARIANCE are used to find the standard deviation and the variance, of the numbers in the specified column or group. COUNT  The COUNT function counts the number of rows in the stated group or column. It has three different variations but each performs the same function of counting the number of rows in the group.
  • 11. COUNT (COLUMN_NAME)  This SQL statement COUNTs all the rows in the stated column as returns their total number. FORMAT: SELECT COUNT (column_name) FROM table_name;
  • 13.  This SQL statement COUNTs all the rows in the employees table and returns the number of rows.
  • 15.  The SQL statement counts the number of rows in the manager _id column. COUNT DISTINCT (COLUMN_NAME)  Where the same value occurs many times in a column, the Oracle server COUNTS them all as one value when the SELECT COUNT keyword is used.
  • 16.
  • 17.  The Oracle server would count the different values in the manager_id column instead of the number of rows.  From the result of this query, it is obvious, that all the 107 employees, share only 18 manager-ids
  • 18.  The DISTINCT keyword, when used with a group function, will specify only the different rows available in that group.  The opposite of the DISTINCT keyword, is the ALL keyword, and it operates on all the rows in the group, including duplicates. Only null values are exempted.
  • 19. GROUPING DATA  Initially we said group functions are functions that operate on a group of rows.  We also said these group of rows could be an entire column.  When we want to specify the order in which the output of a GROUP function is processed, we use the GROUP BY keyword.
  • 21.  The Oracle server goes to the department_id column and fetches the distinct departments.  Afterwards, the Oracle server comes to the salary column and begins to group the rows in the salary column by their various departments, and then finally, for each different department_id, the Oracle server returns the minimum salary.
  • 22.  When using the GROUP BY clause, one general rule is that GROUP BY is always followed by a column name.  No column alias can be used with the GROUP BY clause. EXAMPLE:
  • 23. NESTED GROUPS The situation may demand a nested GROUP, also referred to as a sub GROUP. EXAMPLE:
  • 24.  In the event of Nested GROUPS, the inner GROUP function is SELECT before the outer GROUP function. INCLUDING & EXCLUDING ROWS  When restricting rows in a SELECT clause, we use the WHERE keyword. However, when restricting rows in a GROUP BY clause, we use the HAVING keyword.  The GROUP BY clause will only return the rows that meet the HAVING condition.
  • 26.  All the rows displayed by the Oracle server, have a department_id column greater than 30.