当前位置:网站首页>LeetCode - Easy - 197
LeetCode - Easy - 197
2022-06-28 00:27:00 【明斯克开源】
| recordDate | date |
| temperature | int |
±--------------±--------+
id is the primary key for this table.
This table contains information about the temperature in a certain day.
Write an SQL query to find all dates’ id with higher temperature compared to its previous dates (yesterday).
Return the result table in any order.
The query result format is in the following example:
Weather
±—±-----------±------------+
| id | recordDate | Temperature |
±—±-----------±------------+
| 1 | 2015-01-01 | 10 |
| 2 | 2015-01-02 | 《一线大厂Java面试题解析+后端开发学习笔记+最新架构讲解视频+实战项目源码讲义》无偿开源 威信搜索公众号【编程进阶路】 25 |
| 3 | 2015-01-03 | 20 |
| 4 | 2015-01-04 | 30 |
±—±-----------±------------+
Result table:
±—+
| id |
±—+
| 2 |
| 4 |
±—+
In 2015-01-02, temperature was higher than the previous day (10 -> 25).
In 2015-01-04, temperature was higher than the previous day (30 -> 20).
边栏推荐
- General process after reference layer reboot
- 利用redis bitmap实现人员在线情况监控
- [Yocto RM] 2 - Yocto Project Terms
- 《低代码解决方案》——覆盖工单、维修和财务全流程的数字化售后服务低代码解决方案
- Cesium 获取屏幕所在经纬度范围
- STM32F103的11个定时器
- 低代码DSL里面在数仓中的实践
- Adding text labels to cesium polygons the problem of polygon center point offset is solved
- [Yocto RM]8 - OpenEmbedded Kickstart (.wks) Reference
- Differences between cesium polygon extrudedheight and height
猜你喜欢

面试官问:能否模拟实现JS的new操作符

Dynamic Host Configuration Protocol

Intranet penetration with FRP

将某数据库N多表名作为另外一张表中某一列得值(范围可以是别的数据库中得某张表)

技术人员如何成为技术领域专家

General timer and interrupt of stm32

Raspberry pie realizes intelligent cooling by temperature control fan

Jenkins - data sharing and transfer between copy artifact plug-in builds

ShardingSphere-proxy-5.0.0建立mysql读写分离的连接(六)

SQL injection bypass (2)
随机推荐
How fiddle uses agents
Appium自动化测试基础— 补充:App的包名(appPackage)和启动名(appActivity)
图灵机启动顺序
【永艺XY椅】试用体验
Numpy----np. meshgrid()
How to handle computer security certificate errors
Locust 性能测试 - 参数化,并发循环数据采样不重复
【sylixos】NEW_ Example of type 1 character drive
Introduction to hybrid apps
Cesium obtains the latitude and longitude range of the screen
1382. balancing binary search tree - General method
Scoped attribute and lang attribute in style
Four classic training modes in comparative learning
Appium automation test foundation - Supplement: app package name and appactivity
[elt.zip] openharmony paper Club - memory compression for data intensive applications
766. toplitz matrix
Cesium Click to obtain longitude and latitude (2D coordinates)
geojson 格式说明(格式详解)
Cesium 抗锯齿(线,边框等)
Class initialization and callback usage