0% found this document useful (0 votes)
13 views2 pages

Fall 2022 - CS405 - 2

This document outlines the assignment instructions for CS405 - Database Programming using Oracle 11g, with a total of 20 marks and a due date of January 27, 2023. It specifies submission requirements, including file format restrictions and consequences for late or copied submissions. The assignment includes SQL query tasks related to employee training records and salary analysis.

Uploaded by

servicesgilbert
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Fall 2022 - CS405 - 2

This document outlines the assignment instructions for CS405 - Database Programming using Oracle 11g, with a total of 20 marks and a due date of January 27, 2023. It specifies submission requirements, including file format restrictions and consequences for late or copied submissions. The assignment includes SQL query tasks related to employee training records and salary analysis.

Uploaded by

servicesgilbert
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment No.

02
Total Marks: 20
Semester Fall 2022
Due Date: 27-1-2023
CS405 - Database Programming using Oracle 11g

Instructions

Please read the following instructions carefully before solving & submitting the
assignment:

It should be clear that your assignment will not get any credit (zero marks) if:

o The assignment is submitted after the due date.


o The submitted assignment does NOT open or file is corrupted.
o WinRAR, Excel, Image and PDF all the formats are not acceptable except WORD
format.
o The assignment is copied (from another student or internet).

Uploading instructions

o For clarity and simplicity, you are required to Upload/Submit only “.doc” file.

Objective

The objective of this assignment is:

o To understand the basic concepts of SQL queries.

For any query about the assignment, contact at [email protected]

Note:
No assignment will be accepted after the due date via email in any case (whether it is the case of
load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the
last hour of the deadline.
Question Statement:
An organization has total 04 female employees. Given is the Employee table:
EMPLOYEE_ID NAME SALARY
100 Saima 44000
101 Aamna 13000
102 Aisha 60000
103 Sana 11000
The organization has conducted the training especially for the female employees. The given
Training_details table contains the record of the female employees who have attended the
training lessons in the year 2020.
user_training_i user_id training_id training_date
d
1 1 1 "2020-08-02"
2 2 1 "2020-08-03"
3 3 2 "2020-08-02"
4 4 2 "2020-08-04"
5 2 2 "2020-08-03"
6 1 1 "2020-08-02"
7 3 2 "2020-08-04"
8 4 3 "2020-08-03"
9 1 4 "2020-08-03"
10 3 1 "2020-08-02"
11 4 2 "2020-08-04"
12 3 2 "2020-08-02"
13 1 1 "2020-08-02"
14 4 3 "2020-08-03"

You are required to perform the following tasks:

 Write a SQL query to display the list of female employees who took a training lesson
more than once in the same day grouped by user and training lesson. Each ordered from
the most recent training date to oldest date.

 Write a SQL query to find the employee with second MAX Salary.

You might also like