当前位置:网站首页>LeetCode - Easy - 197
LeetCode - Easy - 197
2022-06-28 02:31:00 【Minsk open source】
| 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 | 《 A big factory Java Analysis of interview questions + Back end development learning notes + The latest architecture explanation video + Practical project source code handout 》 Free open source Prestige search official account 【 Advanced programming 】 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).
边栏推荐
- STM32F103的11个定时器
- Jenkins - Pipeline 概念及创建方式
- Cvpr22 collected papers | hierarchical residual multi granularity classification network based on label relation tree
- Cesium obtains the latitude and longitude range of the screen
- Raspberry pie realizes intelligent cooling by temperature control fan
- JS实现滑动拼图验证
- 技术人员如何成为技术领域专家
- 关于st-link usb communication error的解决方法
- Jenkins - 邮件通知 Email Notification 插件
- 简单文件传输协议TFTP
猜你喜欢
Voice network VQA: make the user's subjective experience of unknown video quality in real-time interaction known
后勤事务繁杂低效?三步骤解决企业行政管理难题
The interviewer asked: can you simulate the new operator of JS
Machine learning (x) reinforcement learning
Numpy----np.reshape()
File transfer protocol --ftp
How fiddle uses agents
1382. balancing binary search tree - General method
Cesium obtains the latitude and longitude range of the screen
SQL injection bypass (V)
随机推荐
Appium自动化测试基础 — ADB常用命令(一)
Numpy----np.tile()函数解析
要搞清楚什么是同步,异步,串行,并行,并发,进程,线程,协程
SQL 注入绕过(五)
Anonymous Mount & named mount
Appium automation test foundation - Supplement: app package name and appactivity
Ti am3352/54/59 industrial core board hardware specification
Jenkins - built in variable access
【ELT.ZIP】OpenHarmony啃论文俱乐部—数据密集型应用内存压缩
SQL injection bypass (3)
To understand what is synchronous, asynchronous, serial, parallel, concurrent, process, thread, and coroutine
Cesium Color 颜色(赋值)随机颜色
图灵机启动顺序
Cesium 获取屏幕所在经纬度范围
OS module and os Learning of path module
Use code binding DataGridView control to display tables in program interface
Cloud platform KVM migration local virtual machine records
File transfer protocol --ftp
JS 随机数(随机数 小数)
Jenkins - 邮件通知 Email Notification 插件