0% found this document useful (0 votes)
40 views

Employee - Id First - Name Last - Name Salary Joining - Date Department

The document contains details of employee and incentives tables including employee ID, name, salary, joining date, department and incentive date and amount. It also lists 3 SQL queries: 1) to select first name and incentive amount from employees who have incentives over 3000, 2) to get difference between joining and incentive dates, 3) to get employees whose first name ends with 'n'.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Employee - Id First - Name Last - Name Salary Joining - Date Department

The document contains details of employee and incentives tables including employee ID, name, salary, joining date, department and incentive date and amount. It also lists 3 SQL queries: 1) to select first name and incentive amount from employees who have incentives over 3000, 2) to get difference between joining and incentive dates, 3) to get employees whose first name ends with 'n'.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Name:

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

Table Name : Incentives

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'

You might also like