GTU DBMS Practical - 4
To perform operations using data manipulation commands, aggregate functions and sorting concept.
1) SQL UPDATE Statement
				
					UPDATE employee
SET emp_sal = emp_sal * 5
WHERE emp_no = '101';
				
			
Output
SQL: Data Manipulation Commands in DBMS
2) COUNT Aggregate Function
				
					SELECT COUNT(*)
FROM employee;
				
			
Output
SQL: Data Manipulation Commands in DBMS
3) AVG Aggregate Function
				
					SELECT AVG(emp_sal)
FROM employee;
				
			
Output
SQL: Data Manipulation Commands in DBMS
4) SQL ORDER BY Keyword
				
					SELECT *
FROM employee
ORDER BY emp_name ASC
				
			
Output
SQL: Data Manipulation Commands in DBMS
5) SQL DELETE Statement
				
					DELETE FROM employee
WHERE dept_no = '20';
				
			
Output
SQL: Data Manipulation Commands in DBMS