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

Commit 0713256

Browse files
committed
LeetCode 196,197
1 parent f07414a commit 0713256

File tree

6 files changed

+25
-8
lines changed

6 files changed

+25
-8
lines changed

‎solution/0100-0199/0196.Delete Duplicate Emails/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Id 是这个表的主键。
4646
### **SQL**
4747

4848
```
49-
49+
delete from Person where Id not in (select min(Id) from (select * from Person) as p group by p.Email)
5050
```
5151

52-
<!-- tabs:end -->
52+
<!-- tabs:end -->

‎solution/0100-0199/0196.Delete Duplicate Emails/README_EN.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Id is the primary key column for this table.
6868
### **SQL**
6969

7070
```
71-
71+
delete from Person where Id not in (select min(Id) from (select * from Person) as p group by p.Email)
7272
```
7373

74-
<!-- tabs:end -->
74+
<!-- tabs:end -->
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
delete from Person where Id not in (select min(Id) from (select * from Person) as p group by p.Email)

‎solution/0100-0199/0197.Rising Temperature/README.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@
3535
### **SQL**
3636

3737
```
38-
38+
select w1.Id
39+
from
40+
Weather w1,
41+
Weather w2
42+
where
43+
DATEDIFF(w1.RecordDate, w2.RecordDate) = 1 and w1.Temperature > w2.Temperature
3944
```
4045

41-
<!-- tabs:end -->
46+
<!-- tabs:end -->

‎solution/0100-0199/0197.Rising Temperature/README_EN.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@
6060
### **SQL**
6161

6262
```
63-
63+
select w1.Id
64+
from
65+
Weather w1,
66+
Weather w2
67+
where
68+
DATEDIFF(w1.RecordDate, w2.RecordDate) = 1 and w1.Temperature > w2.Temperature
6469
```
6570

66-
<!-- tabs:end -->
71+
<!-- tabs:end -->
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
select w1.Id
2+
from
3+
Weather w1,
4+
Weather w2
5+
where
6+
DATEDIFF(w1.RecordDate, w2.RecordDate) = 1 and w1.Temperature > w2.Temperature

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /