0% found this document useful (0 votes)
42 views1 page

DWH & Bi - 5: Assignment # 1

The document contains details about a new Athlete_Details table to store information about sports athletes such as name, height, experience, age, gender, athlete ID, contact details, email, sport club joined, and group. It provides sample data and inserts it into the table. It then lists 10 questions to retrieve data from the Athlete_Details table as well as the DEPT and EMPLOYEE tables such as identifying the only female athlete under age 24, the tallest athlete, unique groups, sorting athletes by experience within each group, identifying managers and their details, the highest paid manager, sorting all employees by highest salary, employees not assigned to a department, and the lowest paid AM employee.

Uploaded by

Rabiya Asif
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)
42 views1 page

DWH & Bi - 5: Assignment # 1

The document contains details about a new Athlete_Details table to store information about sports athletes such as name, height, experience, age, gender, athlete ID, contact details, email, sport club joined, and group. It provides sample data and inserts it into the table. It then lists 10 questions to retrieve data from the Athlete_Details table as well as the DEPT and EMPLOYEE tables such as identifying the only female athlete under age 24, the tallest athlete, unique groups, sorting athletes by experience within each group, identifying managers and their details, the highest paid manager, sorting all employees by highest salary, employees not assigned to a department, and the lowest paid AM employee.

Uploaded by

Rabiya Asif
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

DWH & BI - 5

Assignment # 1

Question#1:

I want to add information regarding sports athletes in a new table which should include athlete name, height, experience in
years, age, gender, athlete's affiliation number with sports club represented as athlete ID, contact number, email ID, sport club
joined, distributed in 3 groups precisely as group_1, group_2 & group_3. The data needs to be retrieved frequently against
each athlete (hint: ID as primary index). Insert b/m data and you may call the table as Athlete_Details.

Name Height Experience Age Gender Athlete ID Contact Email Athlete Group
Aslam 5.5 3 25 Male 231 9234312536221 [Link]@[Link] group_1
Rashid 5.3 4 26 Male 243 9234112345678 [Link]@[Link] group_2
Maria 5.2 3.5 24 Female 232 923467651281 [Link]@[Link] group_3
Fahim 6.1 2 27 Male 250 92345125334141 [Link]@[Link] group_3
Ayesha 5.1 1.5 21 Female 251 923411412131 ayesha12312@[Link] group_1

Question#2: Who is the only female athlete having age less than 24?

Question#3: Who is the tallest athlete?

Question#4: List all the unique groups?

Question#5: Show the athletes sorted out in experience w.r.t their groups? Lowest experience athletes shall be shown first.

Below questions (6 to 10) to be solved on DEPT and EMPLOYEE tables (loaded from employee_script file)

Question#6: Who are the managers in the office, show their names, designation & employee ID?

Question#7: Who is getting the highest salary in Managers?

Question#8: List all the employees along with their department IDs sorted in a way that employee getting highest salary comes
first?

Question#9: Who are my employees not yet assigned to any department?

Question#10: Find out the employee getting the lowest salary in AMs?

You might also like