An open API service indexing awesome lists of open source software.

https://github.com/ivanbyone/leetcode-sql

LeetCode SQL Solutions in PostgreSQL
https://github.com/ivanbyone/leetcode-sql

leetcode leetcode-solutions leetcode-sql leetcode-sql-50 postgresql sql

Last synced: 3 days ago
JSON representation

LeetCode SQL Solutions in PostgreSQL

Awesome Lists containing this project

README

        

# Leetcode (PostgreSQL)

![Postgres](https://img.shields.io/badge/postgres-%23316192.svg?style=for-the-badge&logo=postgresql&logoColor=white)
[![MIT licensed](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
[![CI](https://github.com/ivanbyone/leetcode-sql/actions/workflows/ci.yml/badge.svg)](https://github.com/Ivanbyone/leetcode-sql//actions)

## Description

📚 LeetCode SQL Solutions in PostgreSQL

A collection of LeetCode solutions in SQL using PostgreSQL. Includes:
- Easy/Medium/Hard solutions
- Optimized queries

🔹 Features:
- Clean, formatted SQL code
- Use of PostgreSQL-specific functions
- Parsing complex queries
- Regular updates

Useful for preparing for technical interviews and improving your SQL skills.

### Contributing

Style guide for contributors:

1. Add description to all tasks from Leetcode.
2. Name file pattern: xxx.Task name.sql
3. All keywords must be uppercase.
4. For every task create new branch with pattern: task/task-name -> make PR to main.

Have a good contributing!

## Task List

1. [Easy](./leetcode/easy/)
- [175. Combine Two Tables](./leetcode//easy/175.%20Combine%20Two%20Tables.sql)
- [181. Employees Earning More Than Their Managers](./leetcode/easy/181.%20Employees%20Earning%20More%20Than%20Their%20Managers.sql)
- [182. Duplicate Emails](./leetcode/easy/182.%20Duplicate%20Emails.sql)
- [183. Customers Who Never Order](./leetcode/easy/183.%20Customers%20Who%20Never%20Order.sql)
- [511. Game Play Analysis 1](./leetcode/easy/511.%20Game%20Play%20Analysis%201.sql)
- [577. Employee Bonus](./leetcode/easy/577.%20Employee%20Bonus.sql)
- [586. Customer Placing the Largest Number of Orders](./leetcode/easy/586.%20Customer%20Placing%20the%20Largest%20Number%20of%20Orders.sql)
- [595. Big Countries](./leetcode/easy/595.%20Big%20Countries.sql)
- [596. Classes With at Least 5 Students](./leetcode/easy/596.%20Classes%20With%20at%20Least%205%20Students.sql)
- [610. Triangle Judgement](./leetcode/easy/610.%20Triangle%20Judgement.sql)
- [619. Biggest Single Number](./leetcode/easy/619.%20Biggest%20Single%20Number.sql)
- [620. Not Boring Movies](./leetcode/easy/620.%20Not%20Boring%20Movies.sql)
- [1068. Product Sales Analysis I](./leetcode/easy/1068.%20Product%20Sales%20Analysis%20I.sql)
2. [Medium](./leetcode/medium/)
- [176. Second Highest Salary](./leetcode/medium/176.%20Second%20Highest%20Salary.sql)
- [184. Department Highest Salary](./leetcode/medium/184.%20Department%20Highest%20Salary.sql)
- [1045. Customers Who Bought All Products](./leetcode/medium/1045.%20Customers%20Who%20Bought%20All%20Products.sql)
- [1070. Product Sales Analysis III](./leetcode/medium/1070.%20Product%20Sales%20Analysis%203.sql)
- [1158. Market Analysis 1](./leetcode/medium/1158.%20Market%20Analysis%201.sql)

## License

Check out LICENSE [page](./LICENSE).