0% found this document useful (0 votes)
11 views12 pages

CHP 2 Fundamentals

The document contains various data sets including employee payment details, order books, portfolio values, property values, and sales data. It also includes calculations for bonuses based on employee status and job ratings, as well as sales figures for different products over the months. Additionally, there are queries related to employee hours, refreshment expenses, and stock availability.

Uploaded by

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

CHP 2 Fundamentals

The document contains various data sets including employee payment details, order books, portfolio values, property values, and sales data. It also includes calculations for bonuses based on employee status and job ratings, as well as sales figures for different products over the months. Additionally, there are queries related to employee hours, refreshment expenses, and stock availability.

Uploaded by

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

Names Hrly.

Rate Hrs Worked Amt Fixed Hrs 25


A 100 25 2500 Names Hrly. Rate Amt
B 110 26 2860 A 100 2500
C 120 27 3240 B 110 2750
D 130 28 3640 C 120 3000
E 140 29 4060 D 130 3250
F 150 30 4500 E 140 3500
G 160 31 4960 F 150 3750
H 170 32 5440 G 160 4000
I 180 33 5940 H 170 4250
J 190 34 6460 I 180 4500
K 200 35 7000 J 190 4750
L 210 36 7560 K 200 5000
M 220 37 8140 L 210 5250
N 230 38 8740 M 220 5500
N 230 5750

Kms
Rate 10 11 12 13
100
150
200
Name Status Years Job Rating Bonus1 Bonus2 Bonus3 1 2
Vijay Full Time 8 2 0 2000 3000 0
Don Part Time 7 4 0 2000 0 0
Krrish Part Time 4 2 0 0 0 0
Dabangg Full Time 3 4 1000 2000 0 1000
RaOne Part Time 6 1 0 0 0 0
Shaktiman Full Time 9 5 1000 2000 3000 1000

Bonus1 Give Rs. 1000 bonus to full time employees if their Job Rating is greater than 3
Bonus2 Give Rs. 2000 bonus either if employee is full time or if their job rating is greater than 3
Bonus3 Give Rs. 3000 bonus to full time employees either if their job rating is greater than 4 or if
years of service is greater than 5
3
3000
0
0
0
0
3000
Order book
Item Qty order Qty in stock Deliverable Pending Qty
Phoenix Feather Wand 50 45 45 5 45 5
Marauder's Map 37 51 37 0 37 0
Golden snitch 12 15 12 0 12 0
Firebolt 75 47 47 28 47 28
Invisibility Cloak 8 10 8 0 8 0

Find Deliverable qty as well as Pending qty due to less stock


Portfolio
Stock Volume Buy Last Gain Loss
Weasleys' Wizard Wheezes 25 35.4 45.8 260 0
Dumbledore's Army 53 42.8 37.5 0 -280.9
Inquisitorial Squad 50 86.1 88 95 0
Order of the Phoenix 75 75 69 0 -450
Ministry of Magic 100 8 10 200 0

Total
Property_no Property Value Commission
1 100,000 7,000
2 200,000 14,000
3 300,000 21,000
4 400,000 28,000
5 500,000 35,000
6 600,000 42,000

Questions
Answers
Sum of the property values over 160,000. 2000000
Sum of the property values not equal to 200000 1900000
Sum of the commissions for property values greater than 300,000. 105000
Count of properties greater than 250000 4
Name Department State Hours Refreshment Exp
Abrams Sales WB 37 960
Buckleitner Sales MH 36 576
Cohen Executive WB 36 432 1
Colvin Executive MP 41 312 2
Coules Sales MH 36 1152
Dean IT MP 37 552 3
DeshGJnde Finance UP 36 576 4
DeTorres HR WB 40 480
Dugan Finance GJ 41 864 5
Fitts Finance MH 45 576 6
Holt HR MH 38 768
Jorgensen Executive MP 37 1080 7
Kreanow Sales MP 41 336
Leung Sales MH 35 1080 8
Liebowitz HR GJ 41 792
Lowenfeld Graphics HP 37 408 9
Marciano IT UP 44 504
Marone Marketing HP 36 288
McGowan Graphics WB 45 720
Meacham Sales MH 40 576
Minzner Sales UP 43 1008
Novick Marketing MH 35 840
GJllone Marketing UP 42 1080
Petsch Graphics WB 40 288
Philips Sales WB 41 1176
Rampulla Graphics WB 38 696
Rehal IT GJ 45 600
Richardson Sales WB 37 1080
Sipes IT MH 42 936
Stryker Marketing MP 36 720
Wilson Marketing UP 36 480
Zarish Executive GJ 41 384
Questions Answers
Total hours for WB 314
Total hours for GJ 168

Average refreshment exp for MP 600


Average refreshment exp for MH 813

Count the number of employees in Finance dept 3


Count the number of employees in HR dept 3

count of emp in SALES dept of state MH 4

total refreshment expfor emp in SALES dept of state MH 3384

avg refreshment expfor emp in SALES dept of state MH 846


ID Product
104 Ford Anglia Write a function and get the product name
103 Golden Snitch ID Brand Product
104 Ford Anglia 101 Marauder Map
101 Map 102 Ollivander Wand
102 Wand 103 Quidditch Golden Snitch
103 Golden Snitch 104 Arthurs Ford Anglia
101 Map
104 Ford Anglia
101 Map
102 Wand
ID Brand
104 Arthurs write a function and get the brand name
103 Quidditch
104 Arthurs ID 101 102 103
101 Marauder Brand Marauder Ollivander Quidditch
102 Ollivander Product Map Wand Golden Snitch
103 Quidditch
101 Marauder
104 Arthurs
101 Marauder
102 Ollivander
104
Arthurs
Ford Anglia
Diagon Alley Annual Sales (in Galleons)

Wand Broom Map


Jan 544 639 189 Product Map
Feb 217 719 679 Month Jun
Mar 810 178 810
Apr 567 926 929 Sales
May 745 230 364
Jun 298 820 947
Write the function to seek
Jul 457 522 832 the sales value from the
Aug 495 500 239 given data table
Sep 871 391 529
Oct 585 225 791
Nov 478 262 540
Dec 741 883 809

You might also like