Skip to content

Commit e1100dc

Browse files
add 1623
1 parent 8a73f70 commit e1100dc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,7 @@ _If you like this project, please leave me a star._ ★
10801080
|1667|[Fix Names in a Table](https://leetcode.com/problems/fix-names-in-a-table/)|[Solution](../master/database/_1667.sql) || Easy |
10811081
|1661|[Average Time of Process per Machine](https://leetcode.com/problems/average-time-of-process-per-machine/)|[Solution](../master/database/_1661.sql) || Easy |
10821082
|1633|[Percentage of Users Attended a Contest](https://leetcode.com/problems/percentage-of-users-attended-a-contest/)|[Solution](../master/database/_1633.sql) || Easy |
1083+
|1623|[All Valid Triplets That Can Represent a Country](https://leetcode.com/problems/all-valid-triplets-that-can-represent-a-country/)|[Solution](../master/database/_1623.sql) || Easy |
10831084
|1607|[Sellers With No Sales](https://leetcode.com/problems/sellers-with-no-sales/)|[Solution](../master/database/_1607.sql) || Easy |
10841085
|1581|[Customer Who Visited but Did Not Make Any Transactions](https://leetcode.com/problems/customer-who-visited-but-did-not-make-any-transactions/)|[Solution](../master/database/_1581.sql) || Easy |
10851086
|1543|[Fix Product Name Format](https://leetcode.com/problems/fix-product-name-format/)|[Solution](../master/database/_1543.sql) || Easy |

database/_1623.sql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--# Write your MySQL query statement below
2+
select a.student_name as member_A,
3+
b.student_name as member_B,
4+
c.student_name as member_C
5+
from SchoolA a cross join SchoolB b cross join SchoolC c where a.student_name != b.student_name and
6+
a.student_id != b.student_id and
7+
b.student_name != c.student_name and
8+
b.student_id != c.student_id and
9+
a.student_name != c.student_name and
10+
a.student_id != c.student_id;

0 commit comments

Comments
 (0)