question_slug
stringlengths
3
77
title
stringlengths
1
183
slug
stringlengths
12
45
summary
stringlengths
1
160
⌀
author
stringlengths
2
30
certification
stringclasses
2 values
created_at
stringdate
2013-10-25 17:32:12
2025-04-12 09:38:24
updated_at
stringdate
2013-10-25 17:32:12
2025-04-12 09:38:24
hit_count
int64
0
10.6M
has_video
bool
2 classes
content
stringlengths
4
576k
upvotes
int64
0
11.5k
downvotes
int64
0
358
tags
stringlengths
2
193
comments
int64
0
2.56k
employees-with-missing-information
MySQL || UNION || Easy to understand
mysql-union-easy-to-understand-by-im_obi-53yj
\n# Code\n\n# Write your MySQL query statement below\nselect e.employee_id from employees e left join salaries s on e.employee_id=s.employee_id where s.salary
im_obid
NORMAL
2023-01-07T07:53:31.274145+00:00
2023-01-07T07:53:31.274194+00:00
14,579
false
\n# Code\n```\n# Write your MySQL query statement below\nselect e.employee_id from employees e left join salaries s on e.employee_id=s.employee_id where s.salary is null\nunion \nselect s.employee_id from salaries s left join employees e on e.employee_id=s.employee_id where e.name is null\norder by employee_id;\n\n``...
57
0
['MySQL']
1
employees-with-missing-information
MySQL nice and crisp solution
mysql-nice-and-crisp-solution-by-cepheid-qwv8
\nSELECT employee_id \nFROM employees\nWHERE employee_id NOT IN (SELECT employee_id FROM salaries)\nUNION\nSELECT employee_id \nFROM salaries\nWHERE employee_id
cepheid
NORMAL
2022-04-12T13:22:13.748403+00:00
2022-04-12T13:22:13.748454+00:00
5,075
false
```\nSELECT employee_id \nFROM employees\nWHERE employee_id NOT IN (SELECT employee_id FROM salaries)\nUNION\nSELECT employee_id \nFROM salaries\nWHERE employee_id NOT IN (SELECT employee_id FROM employees)\nORDER BY employee_id;\n```\nUpvote if you like.
44
0
[]
5
employees-with-missing-information
MYSQL: Implementing FULL JOIN by Using UNION for Beginners like me.
mysql-implementing-full-join-by-using-un-8ujj
MySQL does not support FULL JOIN, so you have to combine JOIN, UNION and LEFT JOIN to get an equivalent. Here is an another way:\n\n\nSELECT sub.employee_id\nFR
gokhankesler
NORMAL
2021-08-17T10:50:51.395615+00:00
2021-08-17T10:50:51.395664+00:00
7,974
false
MySQL does not support FULL JOIN, so you have to combine JOIN, UNION and LEFT JOIN to get an equivalent. Here is an another way:\n\n```\nSELECT sub.employee_id\nFROM (\n\tSELECT e.employee_id, name, salary\n\tFROM employees AS e\n\tLEFT JOIN salaries AS s\n\tON e.employee_id = s.employee_id\n\t\n\tUNION\n\t\n\tSELECT s...
42
0
['MySQL']
4
employees-with-missing-information
✅✅ MYSQL || Union || Two approaches || Left Join || Sub-query
mysql-union-two-approaches-left-join-sub-cuet
Please Upvote if you found this helpful.\nSUBQUERY:\n\nselect employee_id from Employees where employee_id not in (select employee_id from Salaries)\nunion \n
B_Sidhu
NORMAL
2022-08-01T13:20:20.948558+00:00
2022-08-01T13:20:46.357550+00:00
2,474
false
### *Please Upvote if you found this helpful.*\n**SUBQUERY:**\n```\nselect employee_id from Employees where employee_id not in (select employee_id from Salaries)\nunion \nselect employee_id from Salaries where employee_id not in (select employee_id from Employees)\norder by employee_id;\n```\n\n**JOINS:**\n```\nsel...
28
0
[]
1
employees-with-missing-information
UNION and NOT IN CONCEPT
union-and-not-in-concept-by-ganjinaveen-666p
MYSQL\n\nselect employee_id from employees where employee_id not in (select employee_id from Salaries)\nunion \nselect employee_id from salaries where employee_
GANJINAVEEN
NORMAL
2023-04-19T13:30:44.972269+00:00
2023-04-19T13:30:44.972366+00:00
4,020
false
# MYSQL\n``` \nselect employee_id from employees where employee_id not in (select employee_id from Salaries)\nunion \nselect employee_id from salaries where employee_id not in (select employee_id from employees)\norder by employee_id\n```\n# please upvote me it would encourage me alot\n
24
0
['MySQL']
1
employees-with-missing-information
Simple and Easy MySQL Solutions (2 Approaches)
simple-and-easy-mysql-solutions-2-approa-quey
Approach 1\n\n#Using Join\nselect e.employee_id from Employees e\n left join Salaries s on e.employee_id = s.employee_id\n where s.salary is NULL \nuni
pruthashouche
NORMAL
2022-07-06T10:16:26.094086+00:00
2022-07-06T10:16:26.094122+00:00
1,893
false
Approach 1\n```\n#Using Join\nselect e.employee_id from Employees e\n left join Salaries s on e.employee_id = s.employee_id\n where s.salary is NULL \nunion\nselect s.employee_id from Salaries s\n left join Employees e on s.employee_id=e.employee_id\n where e.name is NULL\norder by employee_id;\n \n```\n...
18
0
['MySQL']
1
employees-with-missing-information
simple solution(MSSQL)
simple-solutionmssql-by-naveen_2026-8qmj
1.\n\nselect employee_id from employees\nunion\nselect employee_id from salaries\nexcept\nselect employee_id from employees\nintersect \nselect employee_id from
naveen_2026
NORMAL
2022-04-09T20:10:34.355277+00:00
2023-01-23T11:18:59.453996+00:00
1,930
false
1.\n```\nselect employee_id from employees\nunion\nselect employee_id from salaries\nexcept\nselect employee_id from employees\nintersect \nselect employee_id from salaries\n```\nunion of two tables minus intersection\n\nunion 1 2 4 5\nintersection 4 5 \nunion - intersection =1 2\n\n2.\n```\nselect employee_id from emp...
18
0
['MS SQL Server']
2
employees-with-missing-information
Oracle / MySQL 2WAYS Clean
oracle-mysql-2ways-clean-by-fllght-ooj0
Oracle\n\nSELECT e.employee_id \n FROM Employees e \n LEFT JOIN Salaries s ON e.employee_id = s.employee_id\n WHERE s.salary IS NULL\n UNION\n SELECT s1.emp
FLlGHT
NORMAL
2022-03-25T12:58:37.203642+00:00
2022-03-25T12:58:37.203830+00:00
1,369
false
### Oracle\n```\nSELECT e.employee_id \n FROM Employees e \n LEFT JOIN Salaries s ON e.employee_id = s.employee_id\n WHERE s.salary IS NULL\n UNION\n SELECT s1.employee_id\n FROM Salaries s1\n LEFT JOIN Employees e1 ON e1.employee_id = s1.employee_id\n WHERE e1.name IS NULL\n```\n\n### MySQL\n\n```\nSELECT emp...
15
0
['MySQL', 'Oracle']
0
employees-with-missing-information
Union
union-by-linyang0925-gman
select T.employee_id \n from\n (select * from Employees\n union \n select * from Salaries) as T\n group by T.employee_id \n having count(employee_id)<2\n order
Linyang0925
NORMAL
2021-09-09T23:29:20.581495+00:00
2021-09-09T23:29:20.581539+00:00
1,631
false
select T.employee_id \n from\n (select * from Employees\n union \n select * from Salaries) as T\n group by T.employee_id \n having count(employee_id)<2\n order by employee_id asc\n
13
0
[]
0
employees-with-missing-information
Simple MySQL Solution | 2 Approaches | Easy to understand | Faster than 99%
simple-mysql-solution-2-approaches-easy-tlt4h
\n# Note: Full Outer Join is not supported by MySQL so we have to use left and right join with union in the below solution.\nselect employee_id from\n(select em
deb_dutta_
NORMAL
2022-04-06T14:04:22.761828+00:00
2022-04-06T14:06:17.543678+00:00
1,459
false
```\n# Note: Full Outer Join is not supported by MySQL so we have to use left and right join with union in the below solution.\nselect employee_id from\n(select emp.employee_id\nfrom employees emp left join salaries sal \non emp.employee_id = sal.employee_id\nwhere salary is null\nUNION\nselect sal.employee_id\nfrom em...
12
0
['MySQL']
2
employees-with-missing-information
MySQL | 3 Different approaches
mysql-3-different-approaches-by-patil_pr-hb4k
\n# Solution 1\n\nSELECT employee_id \nFROM Salaries \nWHERE employee_id NOT IN (SELECT employee_id \n FROM Employees\n
patil_pratik
NORMAL
2022-06-11T01:56:54.850621+00:00
2022-06-11T01:56:54.850649+00:00
1,326
false
\n# Solution 1\n```\nSELECT employee_id \nFROM Salaries \nWHERE employee_id NOT IN (SELECT employee_id \n FROM Employees\n )\nUNION\n\nSELECT employee_id \nFROM Employees \nWHERE employee_id NOT IN (SELECT employee_id \n FROM Salaries\n ...
11
0
['Union Find', 'MySQL']
2
employees-with-missing-information
SOLUTION WITH SIMPLE QUERY FULL JOIN( SQL SERVER )
solution-with-simple-query-full-join-sql-fqmn
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time
cooking_Guy_9ice
NORMAL
2023-03-06T14:13:55.925545+00:00
2023-03-06T14:13:55.925597+00:00
781
false
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ --...
10
0
['MS SQL Server']
0
employees-with-missing-information
pandas || xor, with explanation || T/S: 98% / 97%
pandas-xor-with-explanation-ts-98-97-by-172b2
Here\'s the plan:\n\n- We convert the two series employees.employee_idand salaries.employee_id to sets.\n\n- The employees with missing information are exactly
Spaulding_
NORMAL
2023-10-25T23:12:54.652688+00:00
2023-10-27T00:03:34.595958+00:00
395
false
Here\'s the plan:\n\n- We convert the two series `employees.employee_id`and `salaries.employee_id` to sets.\n\n- The employees with missing information are exactly those in one set but not both. Thus, we take the `xor` of the two sets, convert that set to a sorted list, and return that set in a frame.\n```\nimport pand...
9
0
['Pandas']
1
employees-with-missing-information
By using UNION operation in mysql
by-using-union-operation-in-mysql-by-shi-8gaq
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time
Shivani_2802
NORMAL
2023-01-29T17:37:59.362540+00:00
2023-01-29T17:37:59.362574+00:00
2,230
false
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ --...
9
0
['MySQL']
2
employees-with-missing-information
Fast MySQL solution using UNION and GROUP BY with brief explanation
fast-mysql-solution-using-union-and-grou-6k1c
Steps:\n1. select all the employee_ids from 2 tables\n2. find out the employee_id which appears only once\n\nfor example:\ntable 1=[1,2,5], table 2=[1,4,5]\nSte
eminem18753
NORMAL
2021-08-08T09:58:00.371576+00:00
2021-08-08T10:13:32.700524+00:00
1,922
false
Steps:\n1. select all the employee_ids from 2 tables\n2. find out the employee_id which appears only once\n\nfor example:\ntable 1=[1,2,5], table 2=[1,4,5]\nStep 1. select all the employee_ids with UNION ALL\n-> 1, 1, 2, 4, 5, 5\nStep 2. find those employee_ids which appear only once\n-> 2, 4\n```\n# Write your MySQL q...
9
0
[]
2
employees-with-missing-information
SQL sloution
sql-sloution-by-abdullakh-kmqm
Code\n\nSELECT employee_id FROM Employees WHERE employee_id not in (SELECT employee_id FROM Salaries)\n UNION\nSELECT employee_id FROM Salaries\n WHERE emplo
abdullakh
NORMAL
2023-01-16T05:41:41.626485+00:00
2023-01-16T05:41:41.626529+00:00
1,468
false
# Code\n```\nSELECT employee_id FROM Employees WHERE employee_id not in (SELECT employee_id FROM Salaries)\n UNION\nSELECT employee_id FROM Salaries\n WHERE employee_id NOT IN (SELECT employee_id FROM Employees)\nORDER BY employee_id\n```
8
0
['Oracle']
0
employees-with-missing-information
MSSQL: simple solution via full outer join
mssql-simple-solution-via-full-outer-joi-v3ma
Hi, there! \nTo solve this problem, you need to take the following steps:\n1. Simply join the two tables (sets) with a full outer join;\n2. Add tuple filterin
makhlov
NORMAL
2022-05-09T15:19:19.794182+00:00
2022-05-09T15:19:19.794209+00:00
986
false
Hi, there! \nTo solve this problem, you need to take the following steps:\n1. Simply join the two tables (sets) with a [*full outer join*](https://www.w3schools.com/sql/sql_join_full.asp);\n2. Add tuple filtering condition to where:\n```1 = 1``` used to make it easier to remove conditions through a "--" comment\n```a...
8
0
['MS SQL Server']
0
employees-with-missing-information
✅✅Easy || By Union || Order BY || NOT IN
easy-by-union-order-by-not-in-by-arpit50-9cmp
\n(\n SELECT e2.employee_id FROM salaries AS e2 \nWHERE e2.employee_id NOT IN (SELECT Employees.employee_id FROM Employees)\nUNION\nSELECT e1.employee_id FRO
Arpit507
NORMAL
2022-09-25T07:13:00.748741+00:00
2022-09-25T07:13:00.748786+00:00
907
false
```\n(\n SELECT e2.employee_id FROM salaries AS e2 \nWHERE e2.employee_id NOT IN (SELECT Employees.employee_id FROM Employees)\nUNION\nSELECT e1.employee_id FROM Employees e1 WHERE\ne1.employee_id NOT IN (SELECT Salaries.employee_id FROM Salaries)\n) ORDER BY employee_id\n# atlast order by employee_id\n```
7
0
['Union Find', 'MySQL', 'Oracle']
0
employees-with-missing-information
1965. Employees With Missing Information
1965-employees-with-missing-information-uftd4
\nSELECT employee_id FROM Employees\nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\n\nUNION\n\nSELECT employee_id FROM Salaries\nWHERE employee_id
Spaulding_
NORMAL
2022-09-21T20:19:04.133217+00:00
2022-09-21T20:19:04.133253+00:00
686
false
```\nSELECT employee_id FROM Employees\nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\n\nUNION\n\nSELECT employee_id FROM Salaries\nWHERE employee_id NOT IN (SELECT employee_id FROM Employees)\n\nORDER BY employee_id;\n```
7
0
['MySQL']
0
employees-with-missing-information
1965. Employees With Missing Information
1965-employees-with-missing-information-rw8fq
```\nSELECT employee_id FROM Employees\nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\n\nUNION\n\nSELECT employee_id FROM Salaries\nWHERE employee
Spaulding_
NORMAL
2022-09-08T08:06:57.286437+00:00
2022-09-08T08:06:57.286479+00:00
193
false
```\nSELECT employee_id FROM Employees\nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\n\nUNION\n\nSELECT employee_id FROM Salaries\nWHERE employee_id NOT IN (SELECT employee_id FROM Employees)\n\nORDER BY employee_id;
7
0
['MySQL']
0
employees-with-missing-information
Easy |FULL OUTER JOIN | MS SQL | without union
easy-full-outer-join-ms-sql-without-unio-tpst
It will work on ms sql.\n\nSELECT (CASE \n WHEN e.employee_id IS null \n THEN s.employee_id \n ELSE e.employee_id \n END
rishav_1570
NORMAL
2022-08-25T19:51:06.709849+00:00
2022-08-25T19:51:06.709889+00:00
866
false
It will work on ms sql.\n```\nSELECT (CASE \n WHEN e.employee_id IS null \n THEN s.employee_id \n ELSE e.employee_id \n END) AS employee_id \nFROM employees e \nFULL OUTER JOIN salaries s \n ON s.employee_id=e.employee_id\nWHERE e.name IS null \n OR s.salary IS null\nORDE...
7
0
[]
1
employees-with-missing-information
Pandas outer join
pandas-outer-join-by-1v9n418vn51-x5d8
Intuition\n1. Merge two tables\n2. Select rows with at least one null\n\n\n# Code\n\nimport pandas as pd\n\ndef find_employees(employees: pd.DataFrame, salaries
1v9n418vn51
NORMAL
2023-08-11T19:10:57.415748+00:00
2023-08-11T19:10:57.415768+00:00
273
false
# Intuition\n1. Merge two tables\n2. Select rows with at least one null\n\n\n# Code\n```\nimport pandas as pd\n\ndef find_employees(employees: pd.DataFrame, salaries: pd.DataFrame) -> pd.DataFrame:\n df = pd.merge(employees, salaries, on=\'employee_id\', how=\'outer\')\n return df[df.isna().any(axis=1)][[\'employ...
6
0
['Pandas']
0
employees-with-missing-information
Beginner friendly solution
beginner-friendly-solution-by-himanshubh-uu4s
\n# Write your MySQL query statement below\nselect employee_id from Employees where employee_id not in(select employee_id from Salaries)\nunion\nselect employee
HimanshuBhoir
NORMAL
2022-06-04T01:51:38.696861+00:00
2022-06-04T01:51:38.696885+00:00
566
false
```\n# Write your MySQL query statement below\nselect employee_id from Employees where employee_id not in(select employee_id from Salaries)\nunion\nselect employee_id from Salaries where employee_id not in(select employee_id from Employees)\norder by employee_id asc\n```
6
0
['MySQL']
0
employees-with-missing-information
MS SQL
ms-sql-by-siyu14-5038
Question\n\n1965. Employees With Missing Information\nEasy\n\nSQL Schema\nTable: Employees\n\n+-------------+---------+\n| Column Name | Type |\n+-----------
siyu14
NORMAL
2021-10-16T16:44:23.890218+00:00
2023-05-31T05:44:20.513816+00:00
557
false
#### Question\n```\n1965. Employees With Missing Information\nEasy\n\nSQL Schema\nTable: Employees\n\n+-------------+---------+\n| Column Name | Type |\n+-------------+---------+\n| employee_id | int |\n| name | varchar |\n+-------------+---------+\nemployee_id is the primary key for this table.\nEach row...
6
1
['MS SQL Server']
2
employees-with-missing-information
Simple MySQL solution using NOT IN
simple-mysql-solution-using-not-in-by-em-paux
\n# Write your MySQL query statement below\nSELECT employee_id FROM Employees\nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION SELECT employe
eminem18753
NORMAL
2021-08-08T10:11:24.213050+00:00
2021-08-08T10:13:23.200773+00:00
1,500
false
```\n# Write your MySQL query statement below\nSELECT employee_id FROM Employees\nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION SELECT employee_id FROM Salaries\nWHERE employee_id NOT IN (SELECT employee_id FROM Employees)\nORDER BY employee_id;\n```
6
0
[]
0
employees-with-missing-information
Simple Solution using Full Join
simple-solution-using-full-join-by-danie-l81c
\n# Approach\n Describe your approach to solving the problem. \nFor this we should know the FULL JOIN Combination of RIGHT and LEFT join, In first solution used
Daniel_Charles_J
NORMAL
2024-09-11T08:43:12.350514+00:00
2024-09-11T08:43:12.350549+00:00
376
false
\n# Approach\n<!-- Describe your approach to solving the problem. -->\nFor this we should know the FULL JOIN Combination of RIGHT and LEFT join, In first solution used FULL JOIN directly, In second Solution showed how it is working without FULL JOIN. Both will work.\n\n\n# Code\n```postgresql []\n-- Write your PostgreS...
5
0
['PostgreSQL']
1
employees-with-missing-information
SQL Server CLEAN & EASY
sql-server-clean-easy-by-rhazem13-ugxh
\nSELECT e.employee_id\nFROM Employees e\nLEFT JOIN Salaries s ON e.employee_id = s.employee_id\nWHERE e.name IS NULL OR s.salary IS NULL\nUNION\nSELECT s.emplo
rhazem13
NORMAL
2023-03-16T12:28:26.577091+00:00
2023-03-16T12:28:26.577137+00:00
1,616
false
```\nSELECT e.employee_id\nFROM Employees e\nLEFT JOIN Salaries s ON e.employee_id = s.employee_id\nWHERE e.name IS NULL OR s.salary IS NULL\nUNION\nSELECT s.employee_id\nFROM Employees e\nRIGHT JOIN Salaries s ON e.employee_id = s.employee_id\nWHERE e.employee_id IS NULL OR e.name IS NULL\nORDER BY employee_id ASC;\n`...
5
0
[]
0
employees-with-missing-information
easy union operation
easy-union-operation-by-nancy25-trpe
please upvote if you liked\n\n# Write your MySQL query statement below\nselect employee_id from Employees where\nemployee_id not in (select employee_id from Sal
nancy25
NORMAL
2022-11-08T12:01:39.303736+00:00
2022-11-08T12:01:39.303770+00:00
638
false
**please upvote if you liked**\n```\n# Write your MySQL query statement below\nselect employee_id from Employees where\nemployee_id not in (select employee_id from Salaries)\nunion \nselect employee_id from Salaries where\nemployee_id not in (select employee_id from Employees) \norder by employee_id\n```
5
0
['MySQL']
1
employees-with-missing-information
SQL | Easy INNER JOIN & UNION
sql-easy-inner-join-union-by-tejkiran_1-19no
\nSELECT employee_id FROM employees\nWHERE employee_id NOT IN (SELECT employee_id FROM salaries)\nUNION\nSELECT employee_id FROM salaries\nWHERE employee_id NOT
tejkiran_1
NORMAL
2022-09-27T04:17:30.288731+00:00
2022-09-27T04:17:30.288775+00:00
949
false
```\nSELECT employee_id FROM employees\nWHERE employee_id NOT IN (SELECT employee_id FROM salaries)\nUNION\nSELECT employee_id FROM salaries\nWHERE employee_id NOT IN (SELECT employee_id FROM employees)\nORDER BY employee_id;\n\n```
5
0
['Union Find', 'MySQL']
0
employees-with-missing-information
✅MySQL || Beginner level ||Easy to Understand||Simple-Short -Solution✅
mysql-beginner-level-easy-to-understands-k1sw
Please upvote to motivate me in my quest of documenting all leetcode solutions. HAPPY CODING:)\nAny suggestions and improvements are always welcome.\n==========
Anos
NORMAL
2022-09-02T19:27:11.838788+00:00
2022-09-02T19:27:11.838832+00:00
505
false
**Please upvote to motivate me in my quest of documenting all leetcode solutions. HAPPY CODING:)\nAny suggestions and improvements are always welcome.***\n*====================================================================*\n\u2705 **MySQL Code :**\n```\nSELECT employee_id FROM Employees WHERE employee_id NOT IN (SEL...
5
0
['Union Find', 'MySQL']
0
employees-with-missing-information
✅ 🔥 MySQL || ⚡easy solution
mysql-easy-solution-by-maary-y8ig
\nselect employee_id from employees \nwhere employee_id not in (select employee_id from salaries)\nunion\nselect employee_id from salaries\nwhere employee_id no
maary_
NORMAL
2022-08-22T18:13:59.468160+00:00
2023-06-02T16:37:20.319140+00:00
425
false
```\nselect employee_id from employees \nwhere employee_id not in (select employee_id from salaries)\nunion\nselect employee_id from salaries\nwhere employee_id not in (select employee_id from employees)\norder by 1\n```
5
0
['Union Find', 'MySQL']
0
employees-with-missing-information
✅ ✅ Best Solution and Best Explanation. Please Once Try it
best-solution-and-best-explanation-pleas-o55o
Please Upvote if You Love it \u2705\n\n\n# Write your MySQL query statement below\n\n# Query 1: => For finding ids of all the employees with missing salary, we
vikramsinghgurjar
NORMAL
2022-07-20T20:44:30.437336+00:00
2022-07-20T20:46:02.603487+00:00
358
false
### Please Upvote if You Love it \u2705\n\n```\n# Write your MySQL query statement below\n\n# Query 1: => For finding ids of all the employees with missing salary, we need to query for employees whose records are present in employees table but not in salaries tables. So Query 1 will be following\n\n\tSelect employee_...
5
0
['Union Find']
1
employees-with-missing-information
Oracle Simple And Best Solution
oracle-simple-and-best-solution-by-ruthv-4q5a
Please upvote if you find it helpful.\n\n/* Write your PL/SQL query statement below */\n\nSELECT employee_id FROM employees e\nFULL OUTER JOIN\nsalaries s\nUSIN
ruthvikc27-dev
NORMAL
2022-07-15T14:19:37.315044+00:00
2022-07-15T14:19:37.315092+00:00
319
false
# Please upvote if you find it helpful.\n```\n/* Write your PL/SQL query statement below */\n\nSELECT employee_id FROM employees e\nFULL OUTER JOIN\nsalaries s\nUSING (employee_id)\nWHERE e.name IS NULL OR s.salary IS NULL\nORDER BY employee_id;\n```
5
0
['MySQL', 'Oracle']
0
employees-with-missing-information
Oracle 820 ms two solution + explanation
oracle-820-ms-two-solution-explanation-b-9hcn
Solution 1:\n1. Union IDs from both table (with saving duplicates)\n2. Select IDs from step 1 that occur once (IDs with name and salary will have duplicates)\n3
deigumnov
NORMAL
2022-04-15T08:22:04.078015+00:00
2022-04-15T08:22:04.078048+00:00
274
false
**Solution 1:**\n1. Union IDs from both table (with saving duplicates)\n2. Select IDs from step 1 that occur once (IDs with name and salary will have duplicates)\n3. Sort IDs from step 2\n```\nselect employee_id from (\n select employee_id from employees\n union all\n select employee_id from salaries\n) tmp\ng...
5
0
['Union Find', 'Oracle']
1
employees-with-missing-information
🔥🔥🔥3 solutions in MySQL | Beats 95.47%🔥🔥🔥
3-solutions-in-mysql-beats-9547-by-prito-1fsl
1. Brute force solution with sub-query with runtime 1071ms beats 40.57% Time complexity: O(N * M) Space complexity: O(N + M + R) => N = total rows from first
pritom5928
NORMAL
2025-02-20T07:08:15.869967+00:00
2025-02-20T07:08:15.869967+00:00
342
false
# 1. Brute force solution with sub-query with runtime 1071ms beats 40.57% - Time complexity: O(N * M) - Space complexity: O(N + M + R) => N = total rows from first sub-query, M= Total rows from second sub-query, R = total rows after UNION # Code ```mysql [] SELECT employee_id FROM employees WHERE employee_id NOT...
4
0
['Database', 'MySQL']
0
employees-with-missing-information
Fast and Simple Solution by using group by and count
fast-and-simple-solution-by-using-group-6zs9m
Problem Statement\nGiven two tables Employees and Salaries, where Employees has columns employee_id and name, and Salaries has columns employee_id and salary, t
OnDecember
NORMAL
2023-12-23T11:36:10.592128+00:00
2023-12-23T11:36:10.592150+00:00
446
false
# Problem Statement\nGiven two tables `Employees` and `Salaries`, where `Employees` has columns `employee_id` and `name`, and `Salaries` has columns `employee_id` and `salary`, the task is to retrieve the `employee_id` of employees who appear in either `Employees` or `Salaries` table but not in both.\n\n## Intuition\nT...
4
0
['MySQL']
0
employees-with-missing-information
MYSQL | UNION | NOT IN | ORDER BY
mysql-union-not-in-order-by-by-venkat089-h2ol
\n# Write your MySQL query statement below\nselect employee_id from \nEmployees where employee_id not in (select employee_id from Salaries)\nunion\nselect emplo
Venkat089
NORMAL
2022-11-08T06:35:29.468968+00:00
2022-11-08T06:35:29.469018+00:00
1,155
false
```\n# Write your MySQL query statement below\nselect employee_id from \nEmployees where employee_id not in (select employee_id from Salaries)\nunion\nselect employee_id from\nSalaries where employee_id not in (select employee_id from Employees)\norder by employee_id asc;\n```
4
0
['Union Find', 'MySQL']
0
employees-with-missing-information
Clever Oracle Solution With NVL() function
clever-oracle-solution-with-nvl-function-jlsi
There is a NVL(param1, param2) function in oracle which comes in handy when we want to replace the NULL value with another value. Here if the value of param1 is
Abbos_Akramov
NORMAL
2022-11-04T11:04:42.715217+00:00
2022-11-04T11:04:42.715258+00:00
1,030
false
There is a NVL(param1, param2) function in oracle which comes in handy when we want to replace the NULL value with another value. Here if the value of param1 is null, then it is replaced with the value of param2. \n\n\n```\nSELECT NVL(E.EMPLOYEE_ID, S.EMPLOYEE_ID) AS EMPLOYEE_ID \nFROM EMPLOYEES E\nFULL JOIN SALARIES S...
4
0
['Oracle']
0
employees-with-missing-information
MySQL SHORTEST Solution
mysql-shortest-solution-by-yassineammani-2lqa
This is the shortest solution ever \n\nSELECT employee_id FROM Employees\nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION\nSELECT employee_id
YassineAmmani
NORMAL
2022-09-10T14:48:28.261823+00:00
2022-09-10T14:48:52.814435+00:00
248
false
This is the shortest solution ever \n```\nSELECT employee_id FROM Employees\nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION\nSELECT employee_id FROM Salaries \nWHERE employee_id NOT IN (SELECT employee_id FROM Employees)\nORDER BY employee_id\n```\n\n***Please UPVOTE***
4
0
['Union Find', 'MySQL']
0
employees-with-missing-information
using UNION And LEFT JOIN |EASY
using-union-and-left-join-easy-by-rishhh-9w3x
\n\'\'\'\n\n# Write your MySQL query statement below\nSELECT Salaries.employee_id\nFROM Salaries \nLEFT JOIN Employees \n on Employees.employee_id=Salaries.
Rishhh101
NORMAL
2022-07-15T03:24:10.226211+00:00
2022-07-15T03:24:10.226241+00:00
173
false
\n\'\'\'\n\n# Write your MySQL query statement below\nSELECT Salaries.employee_id\nFROM Salaries \nLEFT JOIN Employees \n on Employees.employee_id=Salaries.employee_id\nWHERE Employees.name is null\n\nunion\n\nSELECT Employees.employee_id\nFROM Employees\nLEFT JOIN Salaries\n on Salaries.employee_id=Employees....
4
0
[]
0
employees-with-missing-information
Easiest mysql solution!!!!!!!!!!!!
easiest-mysql-solution-by-rajwardhan22-0zdv
\nselect employees.employee_id from employees left join salaries on\nemployees.employee_id=salaries.employee_id\nwhere salaries.employee_id is null \n\nunion\n\
Rajwardhan22
NORMAL
2022-05-13T18:43:10.241327+00:00
2022-05-13T18:43:10.241348+00:00
461
false
```\nselect employees.employee_id from employees left join salaries on\nemployees.employee_id=salaries.employee_id\nwhere salaries.employee_id is null \n\nunion\n\nselect salaries.employee_id from salaries left join employees on\nemployees.employee_id=salaries.employee_id\nwhere employees.employee_id is null \n\norder ...
4
0
['Union Find', 'MySQL']
0
employees-with-missing-information
UNION vs UNION ALL discussion | Two approaches to solve the problem | Description
union-vs-union-all-discussion-two-approa-h8g8
Before moving on to SQL queries let\'s dicuss what union and union all does\n UNION does a union without duplicates\n UNION ALL takes into account duplicates as
swapnildarmora
NORMAL
2022-04-20T14:10:42.641199+00:00
2022-04-21T05:00:47.237740+00:00
243
false
Before moving on to SQL queries let\'s dicuss what union and union all does\n* `UNION` does a union without duplicates\n* `UNION ALL` takes into account duplicates as well.\n\n**Approach1**: So basically if you do a union all of employeeid on two tables the count will be 1 for employee id which are only present in one ...
4
0
[]
2
employees-with-missing-information
SQL SERVER CASE WHEN + FULL OUTER JOIN
sql-server-case-when-full-outer-join-by-2pm3z
\nSELECT CASE WHEN name IS NULL THEN s.employee_id\n WHEN salary IS NULL THEN e.employee_id\n END as employee_id\nFROM Employees e\nFULL O
yiz670
NORMAL
2021-08-08T18:03:56.714340+00:00
2021-08-08T18:03:56.714380+00:00
1,328
false
```\nSELECT CASE WHEN name IS NULL THEN s.employee_id\n WHEN salary IS NULL THEN e.employee_id\n END as employee_id\nFROM Employees e\nFULL OUTER JOIN Salaries s\nON e.employee_id = s.employee_id\nWHERE name IS NULL or salary IS NULL -- get the ones without proper information\nORDER BY em...
4
0
[]
3
employees-with-missing-information
Solution on PostgreSQL
solution-on-postgresql-by-itachi1999-5r2e
\n# Approach: using FULL JOIN\n\n\n# Code\nPostgreSQL []\nSELECT employee_id\nFROM Employees FULL JOIN Salaries USING(employee_id)\nWHERE name IS NULL OR salary
Itachi1999
NORMAL
2024-11-19T09:25:20.364947+00:00
2024-11-19T09:26:14.803404+00:00
140
false
\n# Approach: using FULL JOIN\n\n\n# Code\n```PostgreSQL []\nSELECT employee_id\nFROM Employees FULL JOIN Salaries USING(employee_id)\nWHERE name IS NULL OR salary IS NULL;\n```\nIf you liked the solution, like it \uD83D\uDD3C
3
0
['Database', 'PostgreSQL']
0
employees-with-missing-information
SQL SERVER : FULL JOIN - UNION approaching
sql-server-full-join-union-approaching-b-u1k2
YOUR UPVOTE MAKE MY DAY <3\n\n\n# FULL JOIN\n\n/* Write your T-SQL query statement below */\nselect (\n case when e.name is null then s.employee_id\n
lshigami
NORMAL
2024-04-03T11:57:49.236725+00:00
2024-04-03T11:57:49.236754+00:00
343
false
# YOUR UPVOTE MAKE MY DAY <3\n\n\n# FULL JOIN\n```\n/* Write your T-SQL query statement below */\nselect (\n case when e.name is null then s.employee_id\n when s.salary is null then e.employee_id \n end\n ) as employee_id \nfrom employees e\nfull join salaries s\non s.emp...
3
0
['MS SQL Server']
2
employees-with-missing-information
Pandas | SQL | Easy | Employees With Missing Information
pandas-sql-easy-employees-with-missing-i-f90m
see the Successfully Accepted Submission\n\n\nimport pandas as pd\n\ndef find_employees(employees: pd.DataFrame, salaries: pd.DataFrame) -> pd.DataFrame:\n #
Khosiyat
NORMAL
2023-09-22T16:00:26.418929+00:00
2023-10-01T17:46:50.683899+00:00
199
false
[see the Successfully Accepted Submission](https://leetcode.com/submissions/detail/1056242323/)\n\n```\nimport pandas as pd\n\ndef find_employees(employees: pd.DataFrame, salaries: pd.DataFrame) -> pd.DataFrame:\n # First, we must get unique employee IDs from both DataFrames, so first we concatenate two Series, one ...
3
0
['MySQL']
0
employees-with-missing-information
MySQL Solution for Employees with Missing Information Problem
mysql-solution-for-employees-with-missin-wlrc
Intuition\r\n Describe your first thoughts on how to solve this problem. \r\nThe goal is to find the employee IDs for which either the name or the salary inform
Aman_Raj_Sinha
NORMAL
2023-07-20T02:55:56.522910+00:00
2023-07-20T02:55:56.522941+00:00
869
false
# Intuition\r\n<!-- Describe your first thoughts on how to solve this problem. -->\r\nThe goal is to find the employee IDs for which either the name or the salary information is missing. We can achieve this by performing a combination of LEFT JOIN and RIGHT JOIN between the Employees and Salaries tables and then filter...
3
0
['MySQL']
1
employees-with-missing-information
using UNION
using-union-by-priyanka_0499-y9my
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time
Priyanka_0499
NORMAL
2023-03-25T12:26:12.402135+00:00
2023-03-25T12:26:12.402181+00:00
1,653
false
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ --...
3
0
['MS SQL Server']
1
employees-with-missing-information
MySQL Solution
mysql-solution-by-pranto1209-1oyh
Code\n\n# Write your MySQL query statement below\nselect Employees.employee_id from Employees natural left join Salaries \nwhere Salaries.salary is null\nunion
pranto1209
NORMAL
2023-03-08T11:31:48.293830+00:00
2023-03-08T11:31:48.293859+00:00
1,951
false
# Code\n```\n# Write your MySQL query statement below\nselect Employees.employee_id from Employees natural left join Salaries \nwhere Salaries.salary is null\nunion \nselect Salaries.employee_id from salaries natural left join Employees \nwhere Employees.name is null\norder by employee_id;\n```
3
0
['MySQL']
0
employees-with-missing-information
MySql & Oracle sql solution || UNION || NOT IN
mysql-oracle-sql-solution-union-not-in-b-w2sg
MySQL/Oracle sql solution\n\nSELECT employee_id\nFROM Employees\nWHERE employee_id NOT IN (SELECT employee_id\n FROM Salaries)\nUNION\n
Troz95
NORMAL
2022-11-18T15:39:12.785980+00:00
2022-12-06T21:15:20.463198+00:00
508
false
MySQL/Oracle sql solution\n```\nSELECT employee_id\nFROM Employees\nWHERE employee_id NOT IN (SELECT employee_id\n FROM Salaries)\nUNION\nSELECT employee_id\nFROM Salaries\nWHERE employee_id NOT IN (SELECT employee_id\n FROM Employees)\nORDER BY employee_id;\n```
3
0
['MySQL', 'Oracle']
0
employees-with-missing-information
Easy and Simple
easy-and-simple-by-bipinthakur-l75l
```\n# Write your MySQL query statement below\nselect employee_id from Employees where employee_id not in (select employee_id from salaries)\nunion \nselect emp
BipinThakur
NORMAL
2022-09-18T10:53:23.144083+00:00
2022-09-18T10:53:23.144162+00:00
1,193
false
```\n# Write your MySQL query statement below\nselect employee_id from Employees where employee_id not in (select employee_id from salaries)\nunion \nselect employee_id from salaries where employee_id not in(select employee_id from employees)\norder by employee_id
3
0
['Union Find', 'MySQL']
0
employees-with-missing-information
Solution Here (MySQL WILL NOT SUPPORT FULL JOIN)
solution-here-mysql-will-not-support-ful-4csb
\nSELECT employee_id \nFROM Employees \nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION\nSELECT employee_id\nFROM Salaries \nWHERE employee_i
Prabal_Nair
NORMAL
2022-09-04T10:42:03.360283+00:00
2022-09-04T10:42:03.360328+00:00
284
false
```\nSELECT employee_id \nFROM Employees \nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION\nSELECT employee_id\nFROM Salaries \nWHERE employee_id NOT IN (SELECT employee_id FROM Employees)\n\nORDER BY employee_id\n\n\n```
3
0
[]
0
employees-with-missing-information
Beginner Level Solution With Sub-query and Union
beginner-level-solution-with-sub-query-a-r6yc
Please upvote if you find it helpful. Thank you :)\n\nSolution:\n\nSELECT employee_id\nFROM Employees\nWHERE employee_id NOT IN (SELECT employee_id FROM Salarie
utsav_akash
NORMAL
2022-08-20T07:39:02.423883+00:00
2022-08-20T07:39:02.423927+00:00
244
false
Please **upvote** if you find it helpful. Thank you :)\n\n**Solution:**\n```\nSELECT employee_id\nFROM Employees\nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION\nSELECT employee_id\nFROM Salaries\nWHERE employee_id NOT IN (SELECT employee_id FROM Employees)\nORDER BY employee_id;\n```
3
0
['Union Find', 'MySQL']
0
employees-with-missing-information
MS SQL | SIMPLE | 2 APPROACH
ms-sql-simple-2-approach-by-lavinamall-j5jf
Using UNION ALL\n\nSELECT employee_id\nFROM (\n SELECT E.employee_id\n FROM Employees E\n LEFT JOIN Salaries S ON S.employee_id = E.employe
lavinamall
NORMAL
2022-07-16T17:51:32.550877+00:00
2022-07-16T18:00:14.655683+00:00
621
false
1. Using **UNION ALL**\n```\nSELECT employee_id\nFROM (\n SELECT E.employee_id\n FROM Employees E\n LEFT JOIN Salaries S ON S.employee_id = E.employee_id\n WHERE name IS NULL OR salary IS NULL\n\n UNION ALL\n\n SELECT S.employee_id\n FROM Employees E\n RIGHT JOIN ...
3
0
['Union Find', 'MS SQL Server']
1
employees-with-missing-information
✅ MySql
mysql-by-ranbeer_singh-j20p
Using UNION\n\nSELECT employee_id\nFROM\n( SELECT employee_id FROM Employees\nUNION ALL \nSELECT employee_id FROM Salaries\n)emp\nGROUP BY employee_id\nHAVING C
Ranbeer_Singh
NORMAL
2022-07-10T13:05:43.295100+00:00
2022-07-10T13:05:43.295151+00:00
275
false
Using **UNION**\n```\nSELECT employee_id\nFROM\n( SELECT employee_id FROM Employees\nUNION ALL \nSELECT employee_id FROM Salaries\n)emp\nGROUP BY employee_id\nHAVING COUNT(employee_id)=1\nORDER BY 1;\n```
3
0
['Union Find', 'MySQL']
1
employees-with-missing-information
A simple Solution in PostgreSQL
a-simple-solution-in-postgresql-by-toshp-ygjl
\nSELECT e.employee_id FROM Employees e \n\tLEFT JOIN salaries s ON e.employee_id = s.employee_id\n\t\tWHERE s.salary IS NULL\nUNION\nSELECT s.employee_id FROM
toshpolaty
NORMAL
2022-07-05T16:20:32.907556+00:00
2022-07-05T16:20:32.907600+00:00
105
false
```\nSELECT e.employee_id FROM Employees e \n\tLEFT JOIN salaries s ON e.employee_id = s.employee_id\n\t\tWHERE s.salary IS NULL\nUNION\nSELECT s.employee_id FROM Salaries s \n\tLEFT JOIN employees e ON e.employee_id = s.employee_id\n\t\tWHERE e.name IS NULL;\n```
3
0
['Union Find']
0
employees-with-missing-information
[MySQL] Union Table Solution | Easy Solution |
mysql-union-table-solution-easy-solution-enhb
\nSELECT emp.employee_id\nFROM\n (SELECT \n salaries.employee_id\n FROM\n employees RIGHT JOIN salaries\n ON employees.employee_id =
yash_vish87
NORMAL
2022-07-03T12:50:58.407632+00:00
2022-07-03T12:50:58.407677+00:00
312
false
```\nSELECT emp.employee_id\nFROM\n (SELECT \n salaries.employee_id\n FROM\n employees RIGHT JOIN salaries\n ON employees.employee_id = salaries.employee_id\n WHERE\n employees.name IS NULL\n\n UNION\n\n SELECT \n employees.employee_id\n FROM\n employees L...
3
0
['Union Find', 'MySQL']
0
employees-with-missing-information
easy approach mysql
easy-approach-mysql-by-kakashi2112-66lp
SELECT employee_id FROM Employees \nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION\nSELECT employee_id FROM Salaries \nWHERE employee_id NOT
kakashi2112
NORMAL
2022-07-01T10:01:04.496596+00:00
2022-07-01T10:01:04.496641+00:00
290
false
SELECT employee_id FROM Employees \nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION\nSELECT employee_id FROM Salaries \nWHERE employee_id NOT IN (SELECT employee_id FROM Employees)\nORDER BY employee_id;
3
0
['MySQL']
0
employees-with-missing-information
SQL | Easy | Using SELECT & UNION
sql-easy-using-select-union-by-nidhi_ran-ej5l
\nSELECT employee_id FROM Employees \n\tWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION\nSELECT employee_id FROM Salaries \n\tWHERE employee_
nidhi_ranjan
NORMAL
2022-06-29T03:44:08.862510+00:00
2022-06-29T03:44:08.862562+00:00
196
false
```\nSELECT employee_id FROM Employees \n\tWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION\nSELECT employee_id FROM Salaries \n\tWHERE employee_id NOT IN (SELECT employee_id FROM Employees)\nORDER BY employee_id;\n```\nPlease upvote if you found this useful :)
3
0
['Union Find', 'MySQL']
1
employees-with-missing-information
Simple approach w/o using Union
simple-approach-wo-using-union-by-shruti-nj3j
\nSELECT COALESCE(E.EMPLOYEE_ID,S.EMPLOYEE_ID) AS EMPLOYEE_ID\nFROM EMPLOYEES E\nFULL OUTER JOIN SALARIES S ON E.EMPLOYEE_ID=S.EMPLOYEE_ID\nWHERE E.NAME IS NULL
ShrutiGuptaAllenki
NORMAL
2022-06-24T06:04:43.570939+00:00
2022-06-24T06:04:43.570989+00:00
510
false
```\nSELECT COALESCE(E.EMPLOYEE_ID,S.EMPLOYEE_ID) AS EMPLOYEE_ID\nFROM EMPLOYEES E\nFULL OUTER JOIN SALARIES S ON E.EMPLOYEE_ID=S.EMPLOYEE_ID\nWHERE E.NAME IS NULL OR S.SALARY IS NULL\nORDER BY COALESCE(E.EMPLOYEE_ID,S.EMPLOYEE_ID)\n```
3
0
['MS SQL Server']
1
employees-with-missing-information
mysql | easy | using union
mysql-easy-using-union-by-ahirwarsandeep-ocvk
\nselect employee_id \nfrom Salaries\nwhere employee_id not in (select employee_id from Employees)\nunion\nselect employee_id \nfrom Employees\nwhere employee_i
ahirwarsandeepindia
NORMAL
2022-06-18T04:58:46.272810+00:00
2022-06-18T04:58:46.272861+00:00
207
false
```\nselect employee_id \nfrom Salaries\nwhere employee_id not in (select employee_id from Employees)\nunion\nselect employee_id \nfrom Employees\nwhere employee_id not in (select employee_id from Salaries)\norder by employee_id\n```
3
0
['Union Find', 'MySQL']
0
employees-with-missing-information
Full Outer Join easy
full-outer-join-easy-by-derksl2022-b69p
```\nselect\nisnull(e.employee_id, s.employee_id) as employee_id\nfrom\nemployees e full outer join salaries s on e.employee_id=s.employee_id\nwhere e.name IS N
derksl2022
NORMAL
2022-06-14T02:07:53.874469+00:00
2022-06-14T02:07:53.874498+00:00
879
false
```\nselect\nisnull(e.employee_id, s.employee_id) as employee_id\nfrom\nemployees e full outer join salaries s on e.employee_id=s.employee_id\nwhere e.name IS NULL or s.salary is null\norder by isnull(e.employee_id, s.employee_id) asc
3
0
['MS SQL Server']
1
employees-with-missing-information
TSQL Full outer join statement
tsql-full-outer-join-statement-by-yulinc-sc3t
\nSELECT ISNULL(A.employee_id,B.employee_id) AS employee_id\nFROM Employees A\nFULL OUTER JOIN Salaries B\nON A.employee_id = B.employee_id\nWHERE A.name IS NUL
yulinchao
NORMAL
2022-05-13T07:56:37.886690+00:00
2022-05-13T07:56:37.886726+00:00
250
false
```\nSELECT ISNULL(A.employee_id,B.employee_id) AS employee_id\nFROM Employees A\nFULL OUTER JOIN Salaries B\nON A.employee_id = B.employee_id\nWHERE A.name IS NULL OR B.salary IS NULL\nORDER BY employee_id\n```
3
0
[]
1
employees-with-missing-information
MySQL Solution
mysql-solution-by-haoli1024-snjf
SELECT e.employee_id\nFROM Employees e\nWHERE e.employee_id NOT IN (SELECT s.employee_id FROM Salaries s)\n\nUNION\n\nSELECT s.employee_id\nFROM Salaries s\nWHE
haoli1024
NORMAL
2022-04-17T18:37:52.689421+00:00
2022-04-17T18:37:52.689532+00:00
306
false
SELECT e.employee_id\nFROM Employees e\nWHERE e.employee_id NOT IN (SELECT s.employee_id FROM Salaries s)\n\nUNION\n\nSELECT s.employee_id\nFROM Salaries s\nWHERE s.employee_id NOT IN (SELECT e.employee_id FROM Employees e)\n\nORDER BY employee_id;
3
0
[]
0
employees-with-missing-information
MySQL Full Join using UNION
mysql-full-join-using-union-by-sbd5_941-4o0i
The simple solution here would be to do full outer join and find the id\'s without salary or name\nUnfortunately, We don\'t have FULL OUTER JOIN in MySQL, to ac
sbd5_941
NORMAL
2022-04-10T15:05:07.921710+00:00
2022-04-10T15:05:07.921757+00:00
364
false
The simple solution here would be to do full outer join and find the id\'s without salary or name\nUnfortunately, We don\'t have FULL OUTER JOIN in MySQL, to achieve that we can create it using UNION of left outer and right outer\n\n```\n# Write your MySQL query statement below\n\nSELECT res.employee_id FROM\n(\n SE...
3
0
['Union Find', 'MySQL']
1
employees-with-missing-information
[MySQL] UNION
mysql-union-by-ye15-e6zx
\n\nSELECT employee_id FROM Employees WHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION \nSELECT employee_id FROM Salaries WHERE employee_id NO
ye15
NORMAL
2021-08-11T22:21:28.499268+00:00
2021-08-11T22:21:28.499308+00:00
497
false
\n```\nSELECT employee_id FROM Employees WHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION \nSELECT employee_id FROM Salaries WHERE employee_id NOT IN (SELECT employee_id FROM Employees)\nORDER BY 1\n```
3
0
['MySQL']
0
employees-with-missing-information
Simplest solution using NOT IN & UNION in Postgres 🔥
simplest-solution-using-not-in-union-in-fa3l8
Code
AmoghaMayya
NORMAL
2025-01-22T16:51:43.088636+00:00
2025-01-22T16:51:43.088636+00:00
178
false
# Code ```postgresql [] -- Write your PostgreSQL query statement below select employee_id from employees where employee_id not in (select employee_id from salaries) union select employee_id from salaries where employee_id not in (select employee_id from employees) order by employee_id asc; ```
2
0
['PostgreSQL']
0
employees-with-missing-information
☑️ Finding Employees With Missing Information ☑️
finding-employees-with-missing-informati-30gm
Code
Abdusalom_16
NORMAL
2024-12-28T05:01:03.744331+00:00
2024-12-28T05:01:03.744331+00:00
168
false
# Code ```postgresql [] select coalesce(e.employee_id, s.employee_id) employee_id from employees e full join Salaries s on e.employee_id = s.employee_id where salary is null or name is null; ```
2
0
['Database', 'MySQL', 'PostgreSQL']
0
employees-with-missing-information
Beginner-Friendly Solution Using MySQL || Beats 92% Users || Clear
beginner-friendly-solution-using-mysql-b-3ytm
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time
truongtamthanh2004
NORMAL
2024-08-23T11:13:10.413209+00:00
2024-08-23T11:13:10.413249+00:00
883
false
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ --...
2
0
['MySQL']
0
employees-with-missing-information
Super Easy solution.
super-easy-solution-by-lovepreet12a-qp84
Intuition\n\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Tim
Lovepreet12a
NORMAL
2023-08-14T18:50:22.600166+00:00
2023-08-14T18:50:22.600187+00:00
60
false
# Intuition\n![upvote.png](https://assets.leetcode.com/users/images/c61476a1-59e3-45e2-8cea-8b468e937cbb_1692039020.491576.png)\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your t...
2
0
['MS SQL Server']
1
employees-with-missing-information
Full outer join emulation in MySQL + Alternate Quick and Intuitive Approach
full-outer-join-emulation-in-mysql-alter-xcod
Code\n\n# Write your MySQL query statement below\n# Emulating full outer join in SQL\nSELECT EMPLOYEE_ID FROM\n(SELECT E.EMPLOYEE_ID, NAME, SALARY FROM EMPLOYEE
sonalibasu24
NORMAL
2023-01-22T16:28:38.631293+00:00
2023-01-22T16:28:38.631340+00:00
24
false
# Code\n```\n# Write your MySQL query statement below\n# Emulating full outer join in SQL\nSELECT EMPLOYEE_ID FROM\n(SELECT E.EMPLOYEE_ID, NAME, SALARY FROM EMPLOYEES E\nLEFT OUTER JOIN SALARIES S ON E.EMPLOYEE_ID = S.EMPLOYEE_ID\nUNION \nSELECT S.EMPLOYEE_ID, NAME, SALARY FROM EMPLOYEES E\nRIGHT OUTER JOIN SALARIES S ...
2
0
['MySQL']
0
employees-with-missing-information
CTE solution
cte-solution-by-jackyl1996-9fmq
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time
jackyl1996
NORMAL
2023-01-12T20:07:38.734307+00:00
2023-01-12T20:07:38.734351+00:00
73
false
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ --...
2
0
['MySQL']
0
employees-with-missing-information
Oracle Simple Solution beats 86%
oracle-simple-solution-beats-86-by-deepa-3fv6
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time
deepak2332271
NORMAL
2023-01-07T18:03:59.802506+00:00
2023-01-07T18:03:59.802562+00:00
80
false
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ --...
2
0
['Oracle']
0
employees-with-missing-information
Employees With Missing Information Solution MySql
employees-with-missing-information-solut-p3pm
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time
bhupendra786
NORMAL
2023-01-01T11:07:09.519962+00:00
2023-01-01T11:07:09.520002+00:00
1,986
false
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ --...
2
0
['Database', 'MySQL']
0
employees-with-missing-information
Fast solution || using Not in and Union and Order by employee_id
fast-solution-using-not-in-and-union-and-r963
\n\n# Code\n\n# Write your MySQL query statement below\n\nselect employee_id from salaries where employee_id not in \n(select employee_id from employees)\nunion
iamakhil
NORMAL
2022-12-18T19:45:48.219782+00:00
2022-12-18T19:45:48.219854+00:00
909
false
\n\n# Code\n```\n# Write your MySQL query statement below\n\nselect employee_id from salaries where employee_id not in \n(select employee_id from employees)\nunion\nselect employee_id from employees where employee_id not in \n(select employee_id from salaries)\norder by employee_id\n\n```
2
0
['MySQL']
1
employees-with-missing-information
Union on left joins
union-on-left-joins-by-mlacrosse3-y7z1
Code\n\n/* Write your T-SQL query statement below */\n\nselect distinct c.employee_id from \n(\nselect e.employee_id, e.name, s2.salary from Employees e\nleft j
mlacrosse3
NORMAL
2022-12-14T01:10:17.662922+00:00
2022-12-14T01:10:17.663086+00:00
1,453
false
# Code\n```\n/* Write your T-SQL query statement below */\n\nselect distinct c.employee_id from \n(\nselect e.employee_id, e.name, s2.salary from Employees e\nleft join Salaries s2 on s2.employee_id = e.employee_id\n\nunion\n\nselect s.employee_id, e2.name, s.salary from Salaries s\nleft join Employees e2 on e2.employe...
2
0
['MS SQL Server']
0
employees-with-missing-information
mysql, left join / right join / union
mysql-left-join-right-join-union-by-nov0-96ep
There is no outer join in MySQL.\nhttps://leetcode.com/submissions/detail/857838266/\n\n# Write your MySQL query statement below\n(\n select e.employee_id \n
nov05
NORMAL
2022-12-11T01:14:55.065565+00:00
2022-12-11T01:14:55.065607+00:00
111
false
There is no `outer join` in MySQL.\nhttps://leetcode.com/submissions/detail/857838266/\n```\n# Write your MySQL query statement below\n(\n select e.employee_id \n from Employees as e\n left join Salaries as s\n on e.employee_id = s.employee_id\n where s.employee_id is null\n)\nunion\n(\n select s.empl...
2
0
['Union Find', 'MySQL']
0
employees-with-missing-information
COME WATCH!! EASIEST MYSQL | BEGINNERS METHOD | MYSQL
come-watch-easiest-mysql-beginners-metho-170j
UNION IS THE KEY!!!\n\n# Code\n\n# Write your MySQL query statement below\nSelect employee_id from salaries where employee_id not in (Select employee_id from em
akakabarry
NORMAL
2022-12-03T09:07:33.484698+00:00
2022-12-03T09:07:33.484724+00:00
231
false
UNION IS THE KEY!!!\n\n# Code\n```\n# Write your MySQL query statement below\nSelect employee_id from salaries where employee_id not in (Select employee_id from employees)\nunion \nSelect employee_id from employees where employee_id not in (Select employee_id from salaries) order by employee_id\n```
2
0
['MySQL']
0
employees-with-missing-information
3 MYSQL Solutions
3-mysql-solutions-by-vikasmalviya98-jin6
FASTEST : Using Group BY\nSELECT T.employee_id FROM\n(\n SELECT * FROM Employees \n UNION ALL\n SELECT * FROM Salaries\n) T\nGROUP BY T.employee_id\nHA
vikasmalviya98
NORMAL
2022-12-02T05:08:37.647258+00:00
2022-12-02T05:16:21.741135+00:00
1,379
false
#FASTEST : Using Group BY\nSELECT T.employee_id FROM\n(\n SELECT * FROM Employees \n UNION ALL\n SELECT * FROM Salaries\n) T\nGROUP BY T.employee_id\nHAVING COUNT(T.employee_id) = 1 \nORDER BY T.employee_id ASC;\n\n#Using UNION and WHERE NOT IN\nSELECT employee_id FROM Salaries WHERE employee_id NOT IN (SELECT...
2
0
['Union Find', 'MySQL']
0
employees-with-missing-information
All three solutions - last one is epic
all-three-solutions-last-one-is-epic-by-uurdq
Solution 1\n\nSELECT employee_id from Employees e WHERE employee_id not in (Select employee_id from Salaries)\nUNION \nSELECT employee_id from Salaries s WHERE
sandy_inspires
NORMAL
2022-09-23T05:46:12.870374+00:00
2022-09-23T08:12:57.281335+00:00
186
false
Solution 1\n```\nSELECT employee_id from Employees e WHERE employee_id not in (Select employee_id from Salaries)\nUNION \nSELECT employee_id from Salaries s WHERE employee_id not in (Select employee_id from Employees)\nORDER BY employee_id;\n```\n\n\nSolution 2\n```\nSelect e.employee_id from Employees e \nLEFT JOIN Sa...
2
0
['MySQL']
1
employees-with-missing-information
Here is solution with left join and union
here-is-solution-with-left-join-and-unio-sqnb
sql\nSELECT e.employee_id \nFROM Employees e\nLEFT JOIN Salaries s ON e.employee_id = s.employee_id\nWHERE s.employee_id IS NULL\nUNION \nSELECT s.employee_id \
trungmb007
NORMAL
2022-09-05T08:08:13.369381+00:00
2022-09-05T08:08:13.369417+00:00
186
false
```sql\nSELECT e.employee_id \nFROM Employees e\nLEFT JOIN Salaries s ON e.employee_id = s.employee_id\nWHERE s.employee_id IS NULL\nUNION \nSELECT s.employee_id \nFROM Salaries s\nLEFT JOIN Employees e ON e.employee_id = s.employee_id\nWHERE e.employee_id IS NULL\nORDER BY employee_id\n```
2
0
[]
0
employees-with-missing-information
Neat and Easy Solution
neat-and-easy-solution-by-pranayppatil-88vq
#Solution\n\n\nSELECT employee_id FROM Employees WHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION \nSELECT employee_id FROM Salaries WHERE emp
PranayPPatil
NORMAL
2022-09-04T05:37:12.191173+00:00
2022-09-04T05:37:12.191234+00:00
153
false
**#Solution**\n\n\nSELECT employee_id FROM Employees WHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION \nSELECT employee_id FROM Salaries WHERE employee_id NOT IN (SELECT employee_id FROM Employees)\n\nORDER BY 1 ASC;
2
0
['Union Find', 'MySQL']
0
employees-with-missing-information
Fast NOT EXISTS + UNION Solution
fast-not-exists-union-solution-by-aleksa-kwt6
\nSELECT employee_id FROM Employees e\nWHERE NOT EXISTS (SELECT employee_id FROM Salaries s WHERE e.employee_id = s.employee_id)\n\nUNION \n\nSELECT employee_id
AleksandrEfimenko
NORMAL
2022-09-02T10:30:44.029537+00:00
2022-09-02T10:30:44.029577+00:00
132
false
```\nSELECT employee_id FROM Employees e\nWHERE NOT EXISTS (SELECT employee_id FROM Salaries s WHERE e.employee_id = s.employee_id)\n\nUNION \n\nSELECT employee_id FROM Salaries s\nWHERE NOT EXISTS (SELECT employee_id FROM Employees e WHERE e.employee_id = s.employee_id)\n\nORDER BY employee_id\n```
2
0
['Union Find']
0
employees-with-missing-information
Simple MySQL solution [UNION]
simple-mysql-solution-union-by-mohammedh-svoc
In this problem we are required to write an SQL query to report the IDs of all the employees with missing information. The information of an employee is missing
MohammedHamza
NORMAL
2022-08-26T17:51:55.201154+00:00
2022-08-26T17:51:55.201195+00:00
144
false
In this problem we are required to write **an SQL query to report the IDs of all the employees with missing information. The information of an employee is missing if:**\n\n**The employee\'s name is missing, or\nThe employee\'s salary is missing.**\n\nAnd we also are supposed to return the result table **return the resu...
2
0
['Union Find', 'MySQL']
0
employees-with-missing-information
Faster than 96.64%
faster-than-9664-by-nisharathod231-41ss
MYSQL\n\nselect employee_id from employees\n where employee_id not in(\n select e.employee_id from employees as e, salaries as s\n where e.empl
NishaRathod231
NORMAL
2022-08-25T07:07:52.285084+00:00
2022-08-25T07:07:52.285120+00:00
300
false
# MYSQL\n```\nselect employee_id from employees\n where employee_id not in(\n select e.employee_id from employees as e, salaries as s\n where e.employee_id = s.employee_id\n )\nunion\nselect employee_id from salaries\n where employee_id not in(\n select e.employee_id from employees as e, s...
2
0
['Union Find', 'MySQL']
2
employees-with-missing-information
[MySQL] Simple and easy Implementation
mysql-simple-and-easy-implementation-by-f4du2
```\nselect employee_id\nfrom Employees\nwhere employee_id not in(select employee_id\n from Salaries)\n union\nselect emplo
overeckon
NORMAL
2022-08-15T15:54:26.974499+00:00
2022-08-15T15:54:26.974567+00:00
128
false
```\nselect employee_id\nfrom Employees\nwhere employee_id not in(select employee_id\n from Salaries)\n union\nselect employee_id\nfrom Salaries\nwhere employee_id not in(select employee_id\n from Employees)\norder by employee_id;
2
0
['Union Find', 'MySQL']
0
employees-with-missing-information
MYSQL: Very Easy Solution 100% working
mysql-very-easy-solution-100-working-by-osl6t
select employee_id from Employees where employee_id not in (select employee_id from Salaries)\nunion\nselect employee_id from Salaries where employee_id not in
Ganesh_2k1
NORMAL
2022-08-09T05:14:16.832694+00:00
2022-08-09T05:14:16.832731+00:00
245
false
select employee_id from Employees where employee_id not in (select employee_id from Salaries)\nunion\nselect employee_id from Salaries where employee_id not in (select employee_id from Employees)\norder by employee_id;
2
0
['Union Find']
0
employees-with-missing-information
MySQL Solution using UNION and NOT IN | Nested Query
mysql-solution-using-union-and-not-in-ne-5njy
STEPS\n- Select those id\'s from first table which are not in second table then select those id\'s from second table which are not in first table,\n- Take union
ayaankhan
NORMAL
2022-07-26T15:38:17.478335+00:00
2022-07-26T15:38:17.478373+00:00
183
false
#### STEPS\n- Select those id\'s from first table which are not in second table then select those id\'s from second table which are not in first table,\n- Take union of both result sets\n- Sort the result set by `employee_id`\n\n```\n\nSELECT\n e.employee_id \n FROM Employees as e \n WHERE e.employee_id \n...
2
0
[]
0
employees-with-missing-information
MySQL, left join + union
mysql-left-join-union-by-aat4f-a86z
\nselect e.employee_id\nfrom employees e\nleft join salaries s\non e.employee_id = s.employee_id\nwhere s.salary is null\n\nUNION\n
aat4f
NORMAL
2022-07-25T16:49:21.217089+00:00
2022-07-25T16:49:21.217138+00:00
203
false
```\nselect e.employee_id\nfrom employees e\nleft join salaries s\non e.employee_id = s.employee_id\nwhere s.salary is null\n\nUNION\n\nselect s.employee_id\nfrom salaries s\nleft join employees e\non s.employee_id = e.employee_id\nwhere e.name is null\n\norder ...
2
0
['Union Find', 'MySQL']
0
employees-with-missing-information
Two MS SQL solution
two-ms-sql-solution-by-jarsonx-gww2
Two solutions for MS SQL Server.\n\nThe first one seems quite long but it\'s more like a step-by-step approach, easy to follow and understand.\n\nWe create a ta
jarsonX
NORMAL
2022-07-18T06:41:02.860716+00:00
2022-07-18T06:41:02.860745+00:00
206
false
Two solutions for MS SQL Server.\n\nThe first one seems quite long but it\'s more like a step-by-step approach, easy to follow and understand.\n\nWe create a table based on Employees, join it with Salaries on \'employee_id\' from both. The question here is: what ids do we have in the first table that are not present in...
2
0
['MS SQL Server']
0
employees-with-missing-information
Simple solution using Union
simple-solution-using-union-by-vaibhavna-09s8
Write your MySQL query statement below\nselect employee_id from Employees where employee_id not in (select employee_id from Salaries) union\nselect employee_id
vaibhavnangia2001
NORMAL
2022-07-12T07:15:31.562404+00:00
2022-07-12T07:15:31.562448+00:00
269
false
# Write your MySQL query statement below\nselect employee_id from Employees where employee_id not in (select employee_id from Salaries) union\nselect employee_id from Salaries where employee_id not in (select employee_id from Employees) order by employee_id
2
0
['Union Find', 'MySQL']
0
employees-with-missing-information
MySQL || Simple Query || Using Union
mysql-simple-query-using-union-by-aarind-j5ck
\nselect employee_id from Employees where employee_id not in (select employee_id from Salaries)\nunion\nselect employee_id from Salaries where employee_id not i
aarindey
NORMAL
2022-07-08T02:26:18.666730+00:00
2022-07-08T02:26:18.666757+00:00
195
false
```\nselect employee_id from Employees where employee_id not in (select employee_id from Salaries)\nunion\nselect employee_id from Salaries where employee_id not in (select employee_id from Employees) order by employee_id;\n```
2
0
[]
0
employees-with-missing-information
Logic Solution
logic-solution-by-faxa-unld
select employee_id from employees where employee_id not in(select employee_id from salaries)\nunion\nselect employee_id from salaries where employee_id not in
FaXa
NORMAL
2022-07-06T04:09:34.903157+00:00
2022-07-06T04:09:34.903220+00:00
80
false
select employee_id from employees where employee_id not in(select employee_id from salaries)\nunion\nselect employee_id from salaries where employee_id not in (select employee_id from employees)
2
1
['Union Find', 'Oracle']
0
employees-with-missing-information
Easy solution with explanation
easy-solution-with-explanation-by-sebota-porz
\n# Find all the employee_ids that have salaries but without names\nSELECT s.employee_id FROM Salaries s LEFT JOIN Employees e \nON e.employee_id = s.employee_i
Sebotato
NORMAL
2022-06-29T15:40:19.288320+00:00
2022-06-29T15:43:19.643361+00:00
206
false
```\n# Find all the employee_ids that have salaries but without names\nSELECT s.employee_id FROM Salaries s LEFT JOIN Employees e \nON e.employee_id = s.employee_id \nWHERE e.name IS NULL\n\n# Combine\nUNION\n\n# Find all the employee_ids that have names but without salaries\nSELECT e.employee_id FROM Employees e LEFT ...
2
0
['Union Find']
0
employees-with-missing-information
EASY SOLUTION USING case
easy-solution-using-case-by-qalinle-ncsi
\nSELECT case\n WHEN e.employee_id is null THEN s.employee_id\n WHEN s.salary is NULL THEN e.employee_id\n END AS employee_id\nFROM employe
qalinle
NORMAL
2022-06-29T03:58:10.813075+00:00
2022-06-29T03:58:10.813111+00:00
118
false
```\nSELECT case\n WHEN e.employee_id is null THEN s.employee_id\n WHEN s.salary is NULL THEN e.employee_id\n END AS employee_id\nFROM employees e FULL JOIN salaries s ON e.employee_id = s.employee_id\n\nWHERE e.employee_id is null or s.salary is NULL\n\nORDER BY employee_id\n```
2
0
[]
1
employees-with-missing-information
✅ MySQL Solution, 2 Approaches
mysql-solution-2-approaches-by-sidsri199-w8zp
Approach 1:\n\nSELECT employee_id FROM Employees \nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION\nSELECT employee_id FROM Salaries \nWHERE
sidsri1999
NORMAL
2022-06-06T16:08:42.547026+00:00
2022-06-06T16:08:42.547074+00:00
355
false
**Approach 1:**\n```\nSELECT employee_id FROM Employees \nWHERE employee_id NOT IN (SELECT employee_id FROM Salaries)\nUNION\nSELECT employee_id FROM Salaries \nWHERE employee_id NOT IN (SELECT employee_id FROM Employees)\nORDER BY employee_id;\n```\n\n\n**Approach 2:**\n```\nSELECT Sub.employee_id FROM\n(SELECT e.empl...
2
0
['Union Find', 'MySQL']
0
timeout-cancellation
FULL EXPLANATION UNLIKE ANY OTHERS
full-explanation-unlike-any-others-by-sa-viqw
Intuition\nThe following problem and the next one " Interval Cancellation " ** represent an important concept in JavaScript . It\'s gonna be a long but full th
Sarah-2002
NORMAL
2023-07-06T05:07:01.623484+00:00
2023-07-06T05:12:17.933016+00:00
20,892
false
# Intuition\nThe following problem and the next one **" Interval Cancellation " ** represent an important concept in JavaScript . It\'s gonna be a long but full through explanation so sit tight \uD83D\uDE06\uD83D\uDE06\uD83D\uDE06\n# **Motive :** Return a function after a specifc time only if you didn\'t call other f...
379
1
['Recursion', 'JavaScript']
37
timeout-cancellation
🍞🍞🍞 Full thorough explanation || ✅ simple, beginner friendly
full-thorough-explanation-simple-beginne-4byf
Approach\nThis problem can be a bit confusing, as simple as the solution code is, so I will convey the problem in a step-by-step concrete manner. The following
TheGElCOgecko
NORMAL
2023-06-10T06:18:49.618426+00:00
2023-06-27T00:26:49.048907+00:00
7,140
false
# Approach\nThis problem can be a bit confusing, as simple as the solution code is, so I will convey the problem in a step-by-step concrete manner. The following example is how ```cancellable``` works:\n\nLet\'s say we want to execute a function ```foo``` defined as follows:\n```\nfunction foo(message) {\n console.l...
98
0
['Design', 'JavaScript']
7
timeout-cancellation
Simple implementation
simple-implementation-by-cpcs-54gu
\n\n# Code\n\n/**\n * @param {Function} fn\n * @param {Array} args\n * @param {number} t\n * @return {Function}\n */\nvar cancellable = function(fn, args, t) {\
cpcs
NORMAL
2023-06-01T19:11:51.295491+00:00
2023-06-01T19:11:51.295521+00:00
3,702
false
\n\n# Code\n```\n/**\n * @param {Function} fn\n * @param {Array} args\n * @param {number} t\n * @return {Function}\n */\nvar cancellable = function(fn, args, t) {\n var timeoutId = setTimeout(function() {\n fn.apply(null, args);\n }, t);\n\n var cancelFn = function() {\n clearTimeout(timeoutId);\n };\n\n ret...
12
0
['JavaScript']
1
timeout-cancellation
[TS] Boolean Flag, 75ms, 43.2MB
ts-boolean-flag-75ms-432mb-by-ajna2-tuwj
This problem requires little more than following the instructions, so we will:\n create a boolean flag willFnCall initially set to true;\n set a timeout in t mi
Ajna2
NORMAL
2023-06-02T18:42:02.588796+00:00
2023-06-02T18:42:02.588831+00:00
1,455
false
This problem requires little more than following the instructions, so we will:\n* create a boolean flag `willFnCall` initially set to `true`;\n* set a timeout in `t` milliseconds to call `fn` with `args`, but only if `willFnCall` is still `true`;\n* `return` a function that sets the flag to `false` when called.\n\n# Co...
11
0
['TypeScript']
1