Employee - Id First - Name Last - Name Salary Joining - Date Department
Employee - Id First - Name Last - Name Salary Joining - Date Department
Employee code:
Date:
SQL Queries (Written):
Table Name : Employee
EMPLOYEE_ID
FIRST_NAME
LAST_NAME
SALARY
JOINING_DATE
DEPARTMENT
John
Abraham
1000000
01-JAN-13
Banking
12.00.00 AM
Michael
Clarke
800000
01-JAN-13
Insurance
12.00.00 AM
Roy
Thomas
700000
01-FEB-13
Banking
12.00.00 AM
Tom
Jose
600000
01-FEB-13
Insurance
12.00.00 AM
Jerry
Pinto
650000
01-FEB-13
Insurance
12.00.00 AM
Philip
Mathew
750000
01-JAN-13
Services
12.00.00 AM
TestName1
123
650000
01-JAN-13
Services
12.00.00 AM
TestName2
Lname%
600000
01-FEB-13
12.00.00 AM
Insurance
EMPLOYEE_REF_ID
INCENTIVE_DATE
INCENTIVE_AMOUNT
01-FEB-13
5000
01-FEB-13
3000
01-FEB-13
4000
01-JAN-13
4500
01-JAN-13
3500
1.
Select first_name, incentive amount from employee and incentives table for those employees who
have incentives and incentive amount greater than 3000
2.
Get difference between JOINING_DATE and INCENTIVE_DATE from employee and incentives
table
3.
Get employee details from employee table whose first name ends with 'n'