当前位置:网站首页>The SQL implementation has multiple records with the same ID, and the latest one is taken
The SQL implementation has multiple records with the same ID, and the latest one is taken
2022-07-05 07:12:00 【Just as young】
SELECT *
FROM(
SELECT fs.*,
ROW_NUMBER() OVER(PARTITION BY fs.new_formname
ORDER BY fs.new_approvedate DESC) fsp
FROM new_flowapproval_steps AS fs
) AS purchase_order_fps
WHERE fsp = 1;
Above , among new_formname For there may be multiple repeated id Field ,new_approvedate Is the time field
边栏推荐
猜你喜欢

【软件测试】06 -- 软件测试的基本流程

IPage can display data normally, but total is always equal to 0

ROS2——topic话题(八)

SD_ CMD_ RECEIVE_ SHIFT_ REGISTER

Orin 两种刷机方式

Ros2 - install ros2 (III)

SOC_SD_CMD_FSM

ROS2——功能包(六)

Anaconda navigator click open no response, can not start error prompt attributeerror: 'STR' object has no attribute 'get‘

Solve tensorfow GPU modulenotfounderror: no module named 'tensorflow_ core. estimator‘
随机推荐
Orin 两种刷机方式
Use of Pai platform
[software testing] 03 -- overview of software testing
1290_FreeRTOS中prvTaskIsTaskSuspended()接口实现分析
Ros2 - first acquaintance with ros2 (I)
Orin installs CUDA environment
Mipi interface, DVP interface and CSI interface of camera
IPage can display data normally, but total is always equal to 0
[MySQL 8.0 does not support capitalization of table names - corresponding scheme]
PostMessage communication
现在有html文件,和用vs制作的mvc(连接了数据库),怎么两个相连?
ModuleNotFoundError: No module named ‘picamera‘
SOC_ SD_ DATA_ FSM
[vscode] prohibit the pylance plug-in from automatically adding import
Ros2 - configuration development environment (V)
C learning notes
Orin 安装CUDA环境
【MySQL8.0不支持表名大写-对应方案】
PowerManagerService(一)— 初始化
The difference between NPM install -g/-save/-save-dev