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?