filmov
tv
LinkedIn SQL Interview Question | Using CTEs | Advanced SQL

Показать описание
In this video, we will solve a question that involves working with a table named job_listings, which contains job postings from various companies on LinkedIn. The objective is to write a SQL query that identifies and counts the number of companies that have posted duplicate job listings.
( Note: Duplicate job Listings are those job postings that are from the same company (company_id) that have identical title and description. )
Script --
CREATE TABLE job_listings (
company_id INT,
job_id INT,
title VARCHAR(255),
description TEXT
);
INSERT INTO job_listings (company_id, job_id, title, description) VALUES
(827, 248, 'Business Analyst', 'Business analyst evaluates past and current business data with the primary goal of improving decision-making processes within organisations.'),
(845, 149, 'Business Analyst', 'Business analyst evaluates past and current business data with the primary goal of improving decision-making processes within organisations.'),
(345, 945, 'Data Analyst', 'Data analyst reviews data to identify key insights into a business\'s customers and ways the data can be used to solve problems.'),
(345, 164, 'Data Analyst', 'Data analyst reviews data to identify key insights into a business\'s customers and ways the data can be used to solve problems.'),
(244, 172, 'Data Engineer', 'Data engineer works in a variety of settings to build systems that collect, manage, and convert raw data into usable information for data scientists and business analysts to interpret.');
TIMESTAMP
00:00 Introduction
00:12 Problem Description and Approach
02:52 Solution Implementation
( Note: Duplicate job Listings are those job postings that are from the same company (company_id) that have identical title and description. )
Script --
CREATE TABLE job_listings (
company_id INT,
job_id INT,
title VARCHAR(255),
description TEXT
);
INSERT INTO job_listings (company_id, job_id, title, description) VALUES
(827, 248, 'Business Analyst', 'Business analyst evaluates past and current business data with the primary goal of improving decision-making processes within organisations.'),
(845, 149, 'Business Analyst', 'Business analyst evaluates past and current business data with the primary goal of improving decision-making processes within organisations.'),
(345, 945, 'Data Analyst', 'Data analyst reviews data to identify key insights into a business\'s customers and ways the data can be used to solve problems.'),
(345, 164, 'Data Analyst', 'Data analyst reviews data to identify key insights into a business\'s customers and ways the data can be used to solve problems.'),
(244, 172, 'Data Engineer', 'Data engineer works in a variety of settings to build systems that collect, manage, and convert raw data into usable information for data scientists and business analysts to interpret.');
TIMESTAMP
00:00 Introduction
00:12 Problem Description and Approach
02:52 Solution Implementation
Комментарии