LeetCode Medium 1468 Interview SQL Question with Detailed Explanation

preview_player
Показать описание

In this video I solve and explain a medium difficulty leetcode SQL question using MySQL query. This question has been asked in Apple, Facebook, Amazon, Google, Adobe, Microsoft, Adobe interviews or what we popularly call FAANG interviews.
I explain the related concept as well. This question includes points to keep in mind to develop SQL queries.

LeetCode is the best platform to help you enhance your skills, expand your knowledge and prepare for technical interviews.

If you found this helpful, Like and Subscribe to the channel for more content.

#LeetCodeSQL #FAANG #SQLinterviewQuestions
Рекомендации по теме
Комментарии
Автор

Sir, Thanks a lot for This Amazing Video 😊
Problem - 59 Solved ✅ in Practice SQL - LeetCode 👩🏻‍💻

PrithaMajumder
Автор

This is such a great playlist helped me alot in understanding the thought process behind solving sql problems, thanks a lot

prani
Автор

WITH tax_info AS
(
SELECT company_id,
CASE
WHEN MAX(salary) > 10000 THEN 0.49
WHEN MAX(salary) BETWEEN 1000 AND 10000 THEN 0.24
ELSE 0
END AS tax_percent
FROM Salaries
GROUP BY company_id
)


SELECT company_id, employee_id, employee_name,
ROUND((1 - tax_percent) * salary, 0) AS salary
FROM Salaries s
LEFT JOIN tax_info t
ON s.company_id = t.company_id

phanirampopuri
welcome to shbcf.ru