0% found this document useful (0 votes)
54 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, department, joining date, and incentive amount. It also lists 3 SQL queries to retrieve data from these tables: 1) the first 3 characters of first names, 2) first name, joining year/month/date, and 3) employees whose first name starts with J and has 4 letters.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 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, department, joining date, and incentive amount. It also lists 3 SQL queries to retrieve data from these tables: 1) the first 3 characters of first names, 2) first name, joining year/month/date, and 3) employees whose first name starts with J and has 4 letters.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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 3 characters of FIRST_NAME from EMPLOYEE

2.

Get FIRST_NAME ,Joining year,Joining Month and Joining Date from employee table

3.

Get employee details from employee table whose first name starts with 'J' and name contains 4
letters

You might also like