Duplicate Job Listings
LinkedIn 👶 Easy SQL
Beginner Mode

Objective

Write a SQL query to count how many companies posted duplicate job listings with the same title and description.

Table Schema:

  • job_listings
Column Type Description
job_id INTEGER Unique identifier for each job listing
company_id INTEGER ID of the company that posted the job
title VARCHAR Title of the job listing
description TEXT Description of the job listing

Task Requirements:

  • Identify companies that posted duplicate job listings (same title and description)
  • Count how many companies have posted such duplicates
  • Return only the count of companies with duplicates

Output columns: duplicate_companies

Examples

Example 1:

Input:

job_listings
company_iddescriptionjob_idtitle
101Develop applications1Software Engineer
101Develop applications2Software Engineer
102Analyze data3Data Analyst
102Analyze data4Data Analyst
103Manage products5Product Manager

Output:
duplicate_companies
2
Quick Solution

Code Environment

Sign in or try as guest to run your code.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →