PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep

Quick Overview

This question evaluates understanding of SQL join semantics and the effect of duplicate key values on result cardinality, assessing competency in relational data manipulation and reasoning about result sets.

  • Medium
  • Amazon
  • Data Manipulation (SQL/Python)
  • Business Intelligence Engineer

Illustrate SQL Join Results with Duplicate Keys

Company: Amazon

Role: Business Intelligence Engineer

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Onsite

TABLE1 +------+ | col1 | +------+ | 1 | | 1 | | 1 | +------+ ​ TABLE2 +------+ | col1 | +------+ | 1 | | 1 | | 1 | | 1 | | 1 | +------+ ##### Scenario Demonstrate how SQL join types behave when duplicate key values exist in both tables. ##### Question Using the two tables below, illustrate the exact result sets (show at least the first few rows) returned by 1) LEFT JOIN, 2) RIGHT JOIN, and 3) INNER JOIN on TABLE1.col1 = TABLE2.col1, and explain why each join produces that specific row count. ##### Hints Same key value appears multiple times in both tables; think Cartesian product of matching rows: n_left * n_right.

Quick Answer: This question evaluates understanding of SQL join semantics and the effect of duplicate key values on result cardinality, assessing competency in relational data manipulation and reasoning about result sets.

Last updated: Mar 29, 2026

Loading coding console...

PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.

Related Coding Questions

  • Find recommended friend pairs by shared songs - Amazon (medium)
  • Find recommended friend pairs by shared listening - Amazon (easy)
  • Write SQL window functions for D7 retention - Amazon (medium)
  • Find daily first-order merchants with SQL - Amazon (Medium)
  • Design student–course data models and SQL - Amazon (Medium)