You are on page 1of 3

  Home Study tools

 My courses
 My books My folder Career Life 

Find solutions for your homework Search

home / study / engineering / computer science / computer science questions and answers / 2 on an online recruiting platform, each recruiting co…

Post a question
Question: 2 On an online recruiting platform, each recruiting company c…
Answers from our experts for your tough
homework questions

Enter question

Continue to post
20 questions remaining

My Textbook Solutions

Internationa... Managing... Laborat

11th Edition 4th Edition 7th Editio

View all solutions

Show transcribed image text

Expert Answer

Anonymous answered this


Was this answer helpful? 1 0
2,339 answers

### I hope my answer is helpful for you.


###

ANSWER:

Please find responses to questions below

- Please let it know if there are any changes required.

- All SQL queries and output screenshots listed please go


through it

- All code working description are listed in corresponding


section of the code

CONSIDER DATABASE TABLE WITH SAMPLE DATA

-- Table structure for table `assessments`

CREATE TABLE assessments (

id int NOT NULL,

experience int NOT NULL,

sql int DEFAULT NULL,

algo int DEFAULT NULL,

bug_fixing int DEFAULT NULL,

UNIQUE(id)

);

-- Dumping data for table `assessments`

INSERT INTO assessments (id, experience, sql, algo, bug_fixing) VALUES

(1, 3, 100, NULL, 50),

(2, 5, NULL, 100, 100),

(3, 1, 100, 100, 100),

(4, 5, 100, 50, NULL),

(5, 5, 100, 100, 100);

ANSWER
- using SELECT clause select field 'experience'
from the table "assessments" and GROUP BY
"assessments"

- using SQL aggregate function COUNT count the


total number of assessments

- and using correlated SUB QUERY count the number of assessments


gets maximum score, NULL is also
treated as full score

- in sub query count the number of rows from the table


"assessments" with WHERE condition
'experience'
is equals to the
'experience' field in the main query and each of
the 'experience' ( sql, algo and
bug_fixing
) getting maximum score or NULL

- Below shows the SQL query and output screenshot

QUERY

SELECT experience AS EXP,

(SELECT COUNT(*) FROM assessments

WHERE experience = tb1.experience AND

(sql = 100 OR sql IS NULL) AND

(algo = 100 OR algo IS NULL) AND

(bug_fixing = 100 OR bug_fixing IS NULL)

) AS MAX,

COUNT(experience) AS COUNT

FROM assessments AS tb1

GROUP BY experience

ORDER BY experience DESC

RESULT

ThankYou!!!

Keep Chegging!!!


Comment

Questions viewed by other students

Q: python

A: See step-by-step answer 100% (1 rating)

Q: Parvati is given an array of integers. She is asked to return the sum of all the two-digit numbers in the array. Please
help her to perform this task. Write a function: class Solution f public int solution (int[] A) that, given an array A
consisting of N integers, returns the sum of all two-digit numbers. For example, given A [1, 1000, 80,-91], the function
should return -11 (as the...

A: See answer

Show more 
COMPANY LEGAL & POLICIES CHEGG PRODUCTS AND SERVICES CHEGG NETWORK CUSTOMER SERVICE

About Chegg Advertising Choices Cheap Textbooks Chegg Math Solver EasyBib Customer Service
Chegg For Good Cookie Notice Chegg Coupon Mobile Apps Internships.com Give Us Feedback
College Marketing General Policies Chegg Play Sell Textbooks Thinkful Manage Subscription
Corporate Development Intellectual Property Rights Chegg Study Help Solutions Manual
Investor Relations Terms of Use College Textbooks Study 101
Jobs Global Privacy Policy eTextbooks Textbook Rental
Join Our Affiliate Program DO NOT SELL MY INFO Flashcards Used Textbooks
Media Center Honor Code Learn Digital Access Codes
Site Map Honor Shield Uversity Chegg Life
Chegg Writing

© 2003-2022 Chegg Inc. All rights reserved.

You might also like