Professional Documents
Culture Documents
Practical 3
Practical 3
Experiment No: 2
1) COUNT function
Syntax:
SELECT COUNT(column) FROM table;
2) SUM function
Syntax:
SELECT SUM(column) FROM table;
3) MAX function
Syntax:
SELECT MAX(column) FROM table;
4) MIN function
Syntax:
SELECT MIN(column) FROM table;
Name of the Student: Soumili Bhattacharjee Date of Submission: 31/08/2022
Registration no: 21BAI10037 BTECH – CSE AI & ML
CSE 3001-DBMS LABORATORY-EXERCISE SHEET
5) AVERAGE function
Syntax:
SELECT AVG (column) FROM table;
Syntax:
SELECT column_names FROM table_name WHERE column_name IS NOT NULL;
SQL Query:
CREATE TABLE student(
-> student_id int not null primary key,
-> name varchar (50),
-> marks int
-> );
Outcome: This experiment taught us how to make use of some of the data manipulation
command in MySQL.