리트코드 사이트를 보다가 신기한게 있어서 가져왔다.
이제껏 인강 보면서 필요한 문제만 풀어서 몰랐는데 SQL_STUDY PLAN이라는게 있어
오늘부터 진행해볼까 한다!
SQL - Study Plan - LeetCode
SQL (Structured Query Language) is used to manage relational database management systems (RDBMS). The scope of SQL includes data insertion, query, update and deletion, database schema creation and modification, and data access control.
leetcode.com
SELECT name, population, area
FROM world
WHERE area >= 3000000
OR population >= 25000000;
1757. Recyclable and Low Fat Products
SELECT product_id
FROM Products
WHERE low_fats = 'Y'
AND recyclable = 'Y'
SELECT name
FROM Customer
WHERE referee_id != 2
OR referee_id is null;
183. Customers Who Never Order
SELECT name as Customers
FROM Customers
WHERE id not in (SELECT customerId
FROM orders)
'SQL > LeetCode' 카테고리의 다른 글
[1083] Sales Analysis II (0) | 2022.06.26 |
---|---|
180,184,1075,1076,1082 (0) | 2022.06.22 |
[177] Nth Highest Salary (0) | 2022.06.03 |
[180] Consecutive Numbers (0) | 2022.05.29 |
[196] Delete Duplicate Emails (0) | 2022.05.28 |