DBMS Project
DBMS Project
Operations
&
Aggregate
Functions
Team members:
Devashree Poonekar 120A7038
Sahil Saini 120A7046
Sachet Utekar 120A7058
Table of Contents
String Operation
Aggregate Functions
Conclusion
Why we do need them ?
1. SELECT Statement
2. UPDATE Statement
3. DELETE Statement
Following are two wildcard characters that are used either in
conjunction or independently with the SQL LIKE operator:
Output: Output:
Aggregate Functions
Count
Sum
Avg
Max
Min
Count ( )
Count example:
Output:
Sum ( )
Sum Example:
Output:
Avg ( )
Avg Example:
Output:
Max ( )
Max Example:
Output:
Min( )
Min Example:
Output:
Problems
Problem 1: List down all the records where location is ‘California’
and salary is maximum
Query:
Output:
Problem 2: List down all the records where persons names ends
with ‘rk’ and has got maximum salary
Query:
Output:
Problem 3: List all the records where location is ‘California’ and
age is between 30 to 35
Query:
Output:
Problem 4: List down all the records where name starts with ‘k’
and ends with ‘m’
Query:
Output:
Problem 5: List down all the records where name consists of at
least one ‘e’
Query:
Output: