Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
Select * from Emp
Select Sum(Salary) from Emp
Select Avg(Salary) from Emp
Select Min(Salary) from Emp
Select Max(Salary) from Emp
Select Count(Salary) from Emp
Select * from Emp Order By “Ename” DESC
Select * from Emp Order By “Ename” ASC
Select Prod_Name,Price-Discount As Total from Product
Select Prod_Name,Price-Discount As Sales_Price from Product
1. select sum(Age) from demo;
2. select sum(No1) from function; 3. select sum(No1), sum(No2) from function; 4. Select count(No1), count(No2) from function; 5. select Avg (No1), sum(No2) from function; 6. select Max (No1), Min(No2) from function; 7. Select Sum(Salary) from Emp Group by Designation; 8. Select * from Emp order by Designation;