Write the SQL code to find the average Assign_Charge by Job_code  from the Assignment table.  Write the SQL code to find the average Assign_Charge by employee  from the Assignment table.   Write the SQL code to find who works  the most and the least with one’s charging_hour  from the Assignment table.  Write the SQL code to find how many employees are in job_code 501. Write the SQL code to find what is the job description of job_code 507 Write the SQL codes to find how many projects  are available.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
  • Write the SQL code to find the average Assign_Charge by Job_code  from the Assignment table. 
  • Write the SQL code to find the average Assign_Charge by employee  from the Assignment table.

 

  • Write the SQL code to find who works  the most and the least with one’s charging_hour  from the Assignment table. 
  • Write the SQL code to find how many employees are in job_code 501.
  • Write the SQL code to find what is the job description of job_code 507
  • Write the SQL codes to find how many projects  are available.

 

Table:
ASSIGNMENT
Filter in any column
ASSIGN_NUM ASSIGN_DATE PROJ_NUM EMP_NUM ASSIGN_JOB ASSIGN_CHG_HR ASSIGN_HOURS ISSIGN_CHARGE
Filter
Filter
Filter
Filter
Filter
Filter
Filter
Filter
1003
3/22/2014 18
117
509
34.55
2.0
69.1
1018
3/23/2014 25
117
509
34.55
2.2
76.01
1008
3/22/2014 18
103
503
84.5
0.9
76.05
4
1010
3/23/2014 15
117
509
34.55
2.4
82.92
1017
3/23/2014 18
117
509
34.55
3.8
131.29
1002
3/22
014 22
117
509
34.55
4.2
145.11
1025
3/24/2014 18
117
509
34.55
4.2
145.11
1007
3/22/2014 25
113
508
50.75
3.8
192.85
9.
1013
3/23/2014 25
115
501
96.75
2.0
193.5
10
1005
3/22/2014 25
108
501
96.75
2.2
212.85
11
1014
3/23/2014 22
104
501
96.75
2.8
270.9
12
1024
3/24/2014 15
103
503
84.5
3.3
278.85
13
1001
3/22/2014 18
103
503
84.5
3.5
295.75
14
1021
3/24/2014 22
108
501
110.5
2.7
298.35
15
1012
3/23/2014 18
108
501
96.75
3.4
328.95
16
1020
3/24/2014 15
101
502
125.0
3.1
387.5
17
1006
3/22/2014 22
104
501
96.75
4.2
406.35
18
1023
3/24/2014 22
105
502
125.0
3.5
437.5
19
1011
3/23/2014 25
105
502
105.0
4.3
451.5
20
1016
3/23/2014 22
105
502
105.0
4.7
493.5
21
1004
3/22/2014 18
103
503
84.5
5.9
498.55
22
1015
3/23/2014 15
103
503
84.5
6.1
515.45
23
1019
3/24/2014 25
104
501
110.5
4.9
541.45
24
1022
3/24/2014 22
115
501
110.5
4.9
541.45
25
1009
3/23/2014 15
115
501
96.75
5.6
541.8
2.
3.
Transcribed Image Text:Table: ASSIGNMENT Filter in any column ASSIGN_NUM ASSIGN_DATE PROJ_NUM EMP_NUM ASSIGN_JOB ASSIGN_CHG_HR ASSIGN_HOURS ISSIGN_CHARGE Filter Filter Filter Filter Filter Filter Filter Filter 1003 3/22/2014 18 117 509 34.55 2.0 69.1 1018 3/23/2014 25 117 509 34.55 2.2 76.01 1008 3/22/2014 18 103 503 84.5 0.9 76.05 4 1010 3/23/2014 15 117 509 34.55 2.4 82.92 1017 3/23/2014 18 117 509 34.55 3.8 131.29 1002 3/22 014 22 117 509 34.55 4.2 145.11 1025 3/24/2014 18 117 509 34.55 4.2 145.11 1007 3/22/2014 25 113 508 50.75 3.8 192.85 9. 1013 3/23/2014 25 115 501 96.75 2.0 193.5 10 1005 3/22/2014 25 108 501 96.75 2.2 212.85 11 1014 3/23/2014 22 104 501 96.75 2.8 270.9 12 1024 3/24/2014 15 103 503 84.5 3.3 278.85 13 1001 3/22/2014 18 103 503 84.5 3.5 295.75 14 1021 3/24/2014 22 108 501 110.5 2.7 298.35 15 1012 3/23/2014 18 108 501 96.75 3.4 328.95 16 1020 3/24/2014 15 101 502 125.0 3.1 387.5 17 1006 3/22/2014 22 104 501 96.75 4.2 406.35 18 1023 3/24/2014 22 105 502 125.0 3.5 437.5 19 1011 3/23/2014 25 105 502 105.0 4.3 451.5 20 1016 3/23/2014 22 105 502 105.0 4.7 493.5 21 1004 3/22/2014 18 103 503 84.5 5.9 498.55 22 1015 3/23/2014 15 103 503 84.5 6.1 515.45 23 1019 3/24/2014 25 104 501 110.5 4.9 541.45 24 1022 3/24/2014 22 115 501 110.5 4.9 541.45 25 1009 3/23/2014 15 115 501 96.75 5.6 541.8 2. 3.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY