Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
basketscript
LeetCode-Solutions
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
LeetCode-Solutions
/
MySQL
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
LeetCode-Solutions
/
MySQL
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
accepted-candidates-from-the-interviews.sql
accepted-candidates-from-the-interviews.sql
account-balance.sql
account-balance.sql
active-businesses.sql
active-businesses.sql
active-users.sql
active-users.sql
activity-participants.sql
activity-participants.sql
actors-and-directors-who-cooperated-at-least-three-times.sql
actors-and-directors-who-cooperated-at-least-three-times.sql
ad-free-sessions.sql
ad-free-sessions.sql
ads-performance.sql
ads-performance.sql
all-people-report-to-the-given-manager.sql
all-people-report-to-the-given-manager.sql
all-the-matches-of-the-league.sql
all-the-matches-of-the-league.sql
all-the-pairs-with-the-maximum-number-of-common-followers.sql
all-the-pairs-with-the-maximum-number-of-common-followers.sql
all-valid-triplets-that-can-represent-a-country.sql
all-valid-triplets-that-can-represent-a-country.sql
apples-oranges.sql
apples-oranges.sql
arrange-table-by-gender.sql
arrange-table-by-gender.sql
article-views-i.sql
article-views-i.sql
article-views-ii.sql
article-views-ii.sql
average-salary-departments-vs-company.sql
average-salary-departments-vs-company.sql
average-selling-price.sql
average-selling-price.sql
average-time-of-process-per-machine.sql
average-time-of-process-per-machine.sql
bank-account-summary-ii.sql
bank-account-summary-ii.sql
bank-account-summary.sql
bank-account-summary.sql
big-countries.sql
big-countries.sql
biggest-single-number.sql
biggest-single-number.sql
biggest-window-between-visits.sql
biggest-window-between-visits.sql
bikes-last-time-used.sql
bikes-last-time-used.sql
binary-tree-nodes.sql
binary-tree-nodes.sql
bitwise-user-permissions-analysis.sql
bitwise-user-permissions-analysis.sql
build-the-equation.sql
build-the-equation.sql
calculate-compressed-mean.sql
calculate-compressed-mean.sql
calculate-orders-within-each-interval.sql
calculate-orders-within-each-interval.sql
calculate-parking-fees-and-duration.sql
calculate-parking-fees-and-duration.sql
calculate-salaries.sql
calculate-salaries.sql
calculate-special-bonus.sql
calculate-special-bonus.sql
calculate-the-influence-of-each-salesperson.sql
calculate-the-influence-of-each-salesperson.sql
calculate-trapping-rain-water.sql
calculate-trapping-rain-water.sql
capital-gainloss.sql
capital-gainloss.sql
ceo-subordinate-hierarchy.sql
ceo-subordinate-hierarchy.sql
change-null-values-in-a-table-to-the-previous-value.sql
change-null-values-in-a-table-to-the-previous-value.sql
class-performance.sql
class-performance.sql
classes-more-than-5-students.sql
classes-more-than-5-students.sql
classifying-triangles-by-lengths.sql
classifying-triangles-by-lengths.sql
combine-two-tables.sql
combine-two-tables.sql
compute-the-rank-as-a-percentage.sql
compute-the-rank-as-a-percentage.sql
concatenate-the-name-and-the-profession.sql
concatenate-the-name-and-the-profession.sql
confirmation-rate.sql
confirmation-rate.sql
consecutive-available-seats-ii.sql
consecutive-available-seats-ii.sql
consecutive-available-seats.sql
consecutive-available-seats.sql
consecutive-numbers.sql
consecutive-numbers.sql
consecutive-transactions-with-increasing-amounts.sql
consecutive-transactions-with-increasing-amounts.sql
convert-date-format.sql
convert-date-format.sql
count-apples-and-oranges.sql
count-apples-and-oranges.sql
count-artist-occurrences-on-spotify-ranking-list.sql
count-artist-occurrences-on-spotify-ranking-list.sql
count-occurrences-in-text.sql
count-occurrences-in-text.sql
count-salary-categories.sql
count-salary-categories.sql
count-student-number-in-departments.sql
count-student-number-in-departments.sql
count-the-number-of-experiments.sql
count-the-number-of-experiments.sql
countries-you-can-safely-invest-in.sql
countries-you-can-safely-invest-in.sql
create-a-session-bar-chart.sql
create-a-session-bar-chart.sql
customer-order-frequency.sql
customer-order-frequency.sql
customer-placing-the-largest-number-of-orders.sql
customer-placing-the-largest-number-of-orders.sql
customer-purchasing-behavior-analysis.sql
customer-purchasing-behavior-analysis.sql
customer-who-visited-but-did-not-make-any-transactions.sql
customer-who-visited-but-did-not-make-any-transactions.sql
customers-who-bought-all-products.sql
customers-who-bought-all-products.sql
customers-who-bought-products-a-and-b-but-not-c.sql
customers-who-bought-products-a-and-b-but-not-c.sql
customers-who-never-order.sql
customers-who-never-order.sql
customers-with-maximum-number-of-transactions-on-consecutive-days.sql
customers-with-maximum-number-of-transactions-on-consecutive-days.sql
customers-with-strictly-increasing-purchases.sql
customers-with-strictly-increasing-purchases.sql
daily-leads-and-partners.sql
daily-leads-and-partners.sql
delete-duplicate-emails.sql
delete-duplicate-emails.sql
department-highest-salary.sql
department-highest-salary.sql
department-top-three-salaries.sql
department-top-three-salaries.sql
drop-type-1-orders-for-customers-with-type-0-orders.sql
drop-type-1-orders-for-customers-with-type-0-orders.sql
duplicate-emails.sql
duplicate-emails.sql
dynamic-pivoting-of-a-table.sql
dynamic-pivoting-of-a-table.sql
dynamic-unpivoting-of-a-table.sql
dynamic-unpivoting-of-a-table.sql
election-results.sql
election-results.sql
employee-bonus.sql
employee-bonus.sql
employee-task-duration-and-concurrent-tasks.sql
employee-task-duration-and-concurrent-tasks.sql
employees-earning-more-than-their-managers.sql
employees-earning-more-than-their-managers.sql
employees-project-allocation.sql
employees-project-allocation.sql
employees-whose-manager-left-the-company.sql
employees-whose-manager-left-the-company.sql
employees-with-deductions.sql
employees-with-deductions.sql
employees-with-missing-information.sql
employees-with-missing-information.sql
evaluate-boolean-expression.sql
evaluate-boolean-expression.sql
exchange-seats.sql
exchange-seats.sql
find-active-users.sql
find-active-users.sql
find-all-unique-email-domains.sql
find-all-unique-email-domains.sql
find-bursty-behavior.sql
find-bursty-behavior.sql
find-candidates-for-data-scientist-position.sql
find-candidates-for-data-scientist-position.sql
find-cities-in-each-state.sql
find-cities-in-each-state.sql
find-cumulative-salary-of-an-employee.sql
find-cumulative-salary-of-an-employee.sql
find-customer-referee.sql
find-customer-referee.sql
find-customers-with-positive-revenue-this-year.sql
find-customers-with-positive-revenue-this-year.sql
find-cutoff-score-for-each-school.sql
find-cutoff-score-for-each-school.sql
find-expensive-cities.sql
find-expensive-cities.sql
find-followers-count.sql
find-followers-count.sql
find-interview-candidates.sql
find-interview-candidates.sql
find-latest-salaries.sql
find-latest-salaries.sql
find-longest-calls.sql
find-longest-calls.sql
find-median-given-frequency-of-numbers.sql
find-median-given-frequency-of-numbers.sql
View all files
You can’t perform that action at this time.