











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












CL 203 Lab 02 Functions, Operators And Dates
Operator Description = Equal <> or != Not Equal < Less than > Greater than <= Less than or equal to >= Greater than or Equal to ANY Compares one value with any value in a list ALL Compares one value with all values in a list
ename,NVL(comm,0),NVL2(comm,sal+comm ,sal)as Income FROM emp;
1.List ANNUAL salary of all employees along with their names and job type. 2.List the employees in the ascending order of their salaries. 3.Display no of Employees present in Employee table 4.List the employees information whose daily salary is more than Rs.100. 5.Select min and max hiredate. 6.Find all those employees which were hired between 23 Jan 81 and 3 Jan 83 7.Create a query that displays the employee name and commission amounts. If an employee doesn’t earn commission, put “No commission”. 8.select ename,nvl(to_char(comm),'no commision') from emp 9.Display each employee name, hiredate, and the day of the week on which the employee started. Label the column day. 10.Display the name of the employee who are working in the company for the past 35 years. 11.Display the total salary being paid to all employees.