Skip to content

feat: update sql solution to lc problem: No.1795 #1521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions solution/1700-1799/1795.Rearrange Products Table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@ SELECT
product_id,
'store1' AS store,
store1 AS price
FROM products
FROM Products
WHERE store1 IS NOT NULL
UNION
SELECT
product_id,
'store2' AS store,
store2 AS price
FROM products
FROM Products
WHERE store2 IS NOT NULL
UNION
SELECT
product_id,
'store3' AS store,
store3 AS price
FROM products
FROM Products
WHERE store3 IS NOT NULL;
```

Expand Down
6 changes: 3 additions & 3 deletions solution/1700-1799/1795.Rearrange Products Table/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,21 @@ SELECT
product_id,
'store1' AS store,
store1 AS price
FROM products
FROM Products
WHERE store1 IS NOT NULL
UNION
SELECT
product_id,
'store2' AS store,
store2 AS price
FROM products
FROM Products
WHERE store2 IS NOT NULL
UNION
SELECT
product_id,
'store3' AS store,
store3 AS price
FROM products
FROM Products
WHERE store3 IS NOT NULL;
```

Expand Down
6 changes: 3 additions & 3 deletions solution/1700-1799/1795.Rearrange Products Table/Solution.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ SELECT
product_id,
'store1' AS store,
store1 AS price
FROM products
FROM Products
WHERE store1 IS NOT NULL
UNION
SELECT
product_id,
'store2' AS store,
store2 AS price
FROM products
FROM Products
WHERE store2 IS NOT NULL
UNION
SELECT
product_id,
'store3' AS store,
store3 AS price
FROM products
FROM Products
WHERE store3 IS NOT NULL;