UCSD CSE132B Slide 1/76
CSE 132B CSE 132B Database Systems Applications Database Systems Applications
SQL as Query Language, Part II
- !
- "#$%&'(
()*
CSE 132B CSE 132B Database Systems Applications Database Systems - - PowerPoint PPT Presentation
CSE 132B CSE 132B Database Systems Applications Database Systems Applications SQL as Query Language, Part II
UCSD CSE132B Slide 1/76
()*
UCSD CSE132B Slide 2/76
UCSD CSE132B Slide 3/76
UCSD CSE132B Slide 4/76
UCSD CSE132B Slide 5/76
UCSD CSE132B Slide 6/76
UCSD CSE132B Slide 7/76
UCSD CSE132B Slide 8/76
Find the number of depositors in the bank. Find the number of tuples in the customer relation.
UCSD CSE132B Slide 9/76
UCSD CSE132B Slide 10/76
UCSD CSE132B Slide 11/76
UCSD CSE132B Slide 12/76
UCSD CSE132B Slide 13/76
UCSD CSE132B Slide 14/76
The EMPLOYEE tuples are divided into groups--each group having the
The COUNT and AVG functions are applied to each such group of tuples
The SELECT-clause includes only the grouping attribute and the functions
A join condition can be used in conjunction with grouping
UCSD CSE132B Slide 15/76
UCSD CSE132B Slide 16/76
UCSD CSE132B Slide 17/76
UCSD CSE132B Slide 18/76
UCSD CSE132B Slide 19/76
UCSD CSE132B Slide 20/76
UCSD CSE132B Slide 21/76
UCSD CSE132B Slide 22/76