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

https://github.com/pacemakerx/leetcode-my-solutions-sql-50

This repository contains my solutions for the SQL 50 LEARNING PLAN FROM LEETCODE
https://github.com/pacemakerx/leetcode-my-solutions-sql-50

leetcode leetcode-sql sql

Last synced: 11 days ago
JSON representation

This repository contains my solutions for the SQL 50 LEARNING PLAN FROM LEETCODE

Awesome Lists containing this project

README

          

# LeetCode SQL 50 This repository contains all my **accepted solutions** for the **LeetCode SQL 50** 🚀 Getting Started

![LeetCode Logo](https://workablehr.s3.amazonaws.com/uploads/account/open_graph_logo/604858/social?1687549873000)

[![SQL](https://img.shields.io/badge/Language-SQL-336791?logo=postgresql)](https://www.w3schools.com/sql/)
[![MySQL](https://img.shields.io/badge/MySQL-%2300f.svg?logo=mysql&logoColor=white)](https://www.mysql.com/)
[![GitHub Stars](https://img.shields.io/github/stars/PacemakerX/leetCode-my-solutions-sql-50?style=social)](https://github.com/PacemakerX/leetCode-my-solutions-sql-50/stargazers)
[![License](https://img.shields.io/github/license/PacemakerX/leetCode-my-solutions-sql-50)](./LICENSE)
[![GitHub Last Commit](https://img.shields.io/github/last-commit/PacemakerX/leetCode-my-solutions-sql-50)](https://github.com/PacemakerX/leetCode-my-solutions-sql-50/commits/main)
[![GitHub Repo Size](https://img.shields.io/github/repo-size/PacemakerX/leetCode-my-solutions-sql-50)](https://github.com/PacemakerX/leetCode-my-solutions-sql-50)
[![GitHub Issues](https://img.shields.io/github/issues/PacemakerX/leetCode-my-solutions-sql-50)](https://github.com/PacemakerX/leetCode-my-solutions-sql-50/issues)
[![Visual Studio Code](https://custom-icon-badges.demolab.com/badge/Visual%20Studio%20Code-0078d7.svg?logo=vsc&logoColor=white)](https://github.com/PacemakerX/leetCode-my-solutions-sql-50)

### Prerequisites

- Basic understanding of SQL syntax
- Access to a SQL database system (MySQL, PostgreSQL, SQLite, etc.)
- SQL client or online SQL playground

### Usage

1. **Clone the repository:**

```bash
git clone https://github.com/PacemakerX/leetCode-my-solutions-sql-50.git
cd leetCode-my-solutions-sql-50
```

2. **Browse solutions:**

- Each file is named `questionX_YYYY.sql` where X is the question number and YYYY is the LeetCode problem ID
- Open any `.sql` file to view the solution
- Solutions include comments explaining the approach

3. **Test solutions:**

- Copy the SQL code to your preferred SQL environment
- Use the sample data provided in LeetCode problem descriptions
- Verify results match expected outputs

## 📁 Repository Structure

```
├── README.md # This file
├── question1_1757.sql # Recyclable and Low Fat Products
├── question2_584.sql # Find Customer Referee
├── question3_595.sql # Big Countries
├── question4_1148.sql # Article Views I
├── question5_1683.sql # Invalid Tweets
└── ... (more solutions)
```

study plan, organized by question number and problem ID. It's a comprehensive collection focusing specifically on SQL database problems to help master essential SQL concepts and techniques.

## 📋 About SQL 50

The **LeetCode SQL 50** is a curated list of essential SQL problems that cover fundamental database concepts including:

- **Select & Basic Filtering**
- **Joins** (Inner, Left, Right, Full Outer)
- **Aggregate Functions** (COUNT, SUM, AVG, MIN, MAX)
- **Subqueries & CTEs**
- **Window Functions**
- **String Functions**
- **Date/Time Operations**
- **Advanced SQL Techniques**

## 🎯 Why This Repository?

This repository serves as:

- **SQL Mastery**: A systematic approach to learning essential SQL concepts
- **Interview Preparation**: Perfect for preparing SQL questions commonly asked in technical interviews
- **Reference Guide**: Quick access to SQL patterns and techniques
- **Learning Resource**: Clean, commented solutions for SQL beginners and intermediate learners
- **Progress Tracking**: Personal archive of SQL 50 completion journey

## 📊 LeetCode Stats


LeetCode Badges
LeetCode Heatmap

## Connect with Me on LeetCode!

[![PacemakerX on LeetCode](https://assets.leetcode.com/users/avatars/avatar_1702544079.png)](https://leetcode.com/u/PacemakerX/)

Visit my **[LeetCode Profile](https://leetcode.com/u/PacemakerX/)** to see my complete programming journey!

## Feel free to connect with me!



Gmail Badge


LinkedIn Badge