Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf47f491

Browse files
add 1795
1 parentcbbf39f commitf47f491

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

‎database/_1795.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-- Write your PostgreSQL query statement below
2+
select product_id,'store1'as store, store1as price
3+
from Products
4+
where store1is not null
5+
union
6+
select product_id,'store2'as store, store2as price
7+
from Products
8+
where store2is not null
9+
union
10+
select product_id,'store3'as store, store3as price
11+
from Products
12+
where store3is not null

‎paginated_contents/database/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| 2072|[The Winner University](https://leetcode.com/problems/the-winner-university/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_2072.sql)|| Easy|
99
| 2026|[Low-Quality Problems](https://leetcode.com/problems/low-quality-problems/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_2026.sql)|| Easy|
1010
| 1978|[Employees Whose Manager Left the Company](https://leetcode.com/problems/employees-whose-manager-left-the-company/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_1978.sql)|| Easy|
11+
| 1795|[Rearrange Products Table](https://leetcode.com/problems/rearrange-products-table/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_1795.sql)|| Easy|
1112
| 1789|[Primary Department for Each Employee](https://leetcode.com/problems/primary-department-for-each-employee/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_1789.sql)|| Easy|
1213
| 1757|[Recyclable and Low Fat Products](https://leetcode.com/problems/recyclable-and-low-fat-products/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_1757.sql)|| Easy|
1314
| 1741|[Find Total Time Spent by Each Employee](https://leetcode.com/problems/find-total-time-spent-by-each-employee/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_1741.sql)|| Easy|

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp