Average interview scores by interview outcome

InterviewQs

Average interview scores by interview outcome

SQL Database Querying Subquery Case Statements Join

Forward this email to a friend or colleague and challenge them to solve it.

Hi, 

Suppose your team is looking to see how interview scores may differ by interview outcome (if an offer was extended) and by role at your company.

You're given the below tables, detailing candidate roles/locations as well as associated interview scores. Using these tables, write a SQL query to return the average interview scores for each interview outcome (e.g. was a job offer extended) by role and interview_id. The resulting query should have the following fields:

  • role
  • interview_id
  • avg_score_no_offer
  • avg_score_offer

Table: candidateInterviews

Each row represents a unique interview/candidate as well as the candidate's score (an integer from 1-5, with 5 representing the highest possible score). Each candidate should have 3 interviews.

candidate_name interview_id interview_score
john_smith 1 5
sarah_daniels 1 4
tim_cook 1 2
... ... ...

Table: candidateInterviews

Each row represents a unique candidate and the result of their interview (e.g. did they get an offer?). "has_offer" is a boolean field, 1 = candidate had an offer extended and 0 = no offer extended.

name has_offer role location
john_smith 1 SWE New York
sarah_daniels 1 Analyst San Francisco
tim_cook 0 Analyst San Francisco
... ... ... ...

You can view/query the data in an interactive fiddle here.

 

You’ve accumulated 397 questions since joining our email list. Create a premium account to access detailed solutions to each problem (including this one) + our new Case studies.


Was this email forwarded to you? You can join our list here to receive questions

How did you like today's question?

15411 Boischatel, Montreal, QC, H9H1Y7, Canada
Don't want to get these emails anymore? We'll forgive you if you unsubscribe

Key phrases

Older messages

Significant difference in time series dataset

Friday, January 20, 2023

Statistics, Significance Testing, Time Series, InterviewQs Significant difference in time series dataset Statistics Significance Testing Time Series Forward this email to a friend or colleague and

Coding a Fibonacci Sequence Function

Friday, January 20, 2023

Python, Algorithms, Data Structures, InterviewQs Coding a Fibonacci Sequence Function Python Algorithms Data Structures Forward this email to a friend or colleague and challenge them to solve it. Hi, A

Do two array elements sum to N?

Monday, January 9, 2023

Python, Data Structures, Algorithms, InterviewQs Do two array elements sum to N? Python Data Structures Algorithms Forward this email to a friend or colleague and challenge them to solve it. Hi, Given

Probability of high IQ or high creativity in sample

Friday, January 6, 2023

Statistics, Probability, Conditional Probability, InterviewQs Probability of high IQ or high creativity in sample Statistics Probability Conditional Probability Forward this email to a friend or

Grouping similarly weighted animals

Wednesday, January 4, 2023

SQL, Database Querying, Self-join, InterviewQs Grouping similarly weighted animals SQL Database Querying Self-join Forward this email to a friend or colleague and challenge them to solve it. Hi, You

You Might Also Like

New Roundtable! Additive for Mass Production Applications

Friday, April 19, 2024

The Outlook for the Future View this email in your browser engineering.com Roundtable - Additive for Mass Production Applications: The Outlook for the Future 6 Considerations for Choosing the Right

📷 What to Know About Macro Photography — Why You Should Buy a Budget Motherboard

Friday, April 19, 2024

Also: How to Automatically Highlight Values in Excel, and More! How-To Geek Logo April 19, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your

Is the wind going out of the AI sails?

Friday, April 19, 2024

Rippling vacuums up venture capital and Ramp bags more millions View this email online in your browser By Haje Jan Kamps Friday, April 19, 2024 Image Credits: Getty Images / Carol Yepes Welcome to

Llama 3 is out - Weekly News Roundup - Issue #463

Friday, April 19, 2024

Plus: brand-new, all-electric Atlas; AI Index Report 2024; Microsoft pitched GenAI tools to US military; Humane AI Pin reviews are in; debunking Devin; and more! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Daily Coding Problem: Problem #1417 [Easy]

Friday, April 19, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Wayfair. You are given a 2 x N board, and instructed to completely cover the board with

Charted | How Hard Is It to Get Into an Ivy League School? 🎓

Friday, April 19, 2024

We detail the admission rates and average annual cost for Ivy League schools, as well as the median SAT scores required to be accepted. View Online | Subscribe Presented by: Discover the motivations

Dark Matter & Tortured Poets

Friday, April 19, 2024

New music releases aren't what they used to be -- for good and bad. Dark Matter & Tortured Poets By MG Siegler • 19 Apr 2024 View in browser View in browser New music releases in 2024 are a

Impact of AI on Product Management

Friday, April 19, 2024

​ Impact of AI on Product Management The rise of the AI Product Manager. Product managers have always championed customer's needs. However, with AI, the job requires new technical and ethical

⚙️ Zuck has entered the chat(bot)

Friday, April 19, 2024

Plus: AI video's coming to mobile! ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Noonification: Just Made my First Dollar With My SaaS After Quitting my Job

Friday, April 19, 2024

Top Tech Content sent at Noon! Get Algolia: AI Search that understands How are you, @newsletterest1? 🪐 What's happening in tech this week: The Noonification by HackerNoon has got you covered with