当前位置:网站首页>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
边栏推荐
- ROS2——工作空间(五)
- Anaconda navigator click open no response, can not start error prompt attributeerror: 'STR' object has no attribute 'get‘
- Ros2 - first acquaintance with ros2 (I)
- Error: "mountvolume.setup failed for volume PVC fault handling
- 【软件测试】04 -- 软件测试与软件开发
- 一文揭开,测试外包公司的真实情况
- Matlab在线性代数中的应用(四):相似矩阵及二次型
- Literacy Ethernet MII interface types Daquan MII, RMII, smii, gmii, rgmii, sgmii, XGMII, XAUI, rxaui
- M2DGR 多源多场景 地面机器人SLAM数据集
- U-boot initialization and workflow analysis
猜你喜欢

ethtool 原理介绍和解决网卡丢包排查思路(附ethtool源码下载)

Solve tensorfow GPU modulenotfounderror: no module named 'tensorflow_ core. estimator‘

三体目标管理笔记

【MySQL8.0不支持表名大写-对应方案】

Volcano resource reservation feature

Ros2 - node (VII)

并发编程 — 如何中断/停止一个运行中的线程?

Do you choose pandas or SQL for the top 1 of data analysis in your mind?

U-Boot初始化及工作流程分析

C#学习笔记
随机推荐
mingling
Ros2 - first acquaintance with ros2 (I)
PHY驱动调试之 --- MDIO/MDC接口22号和45号条款(一)
SOC_SD_DATA_FSM
Solve tensorfow GPU modulenotfounderror: no module named 'tensorflow_ core. estimator‘
Edge calculation data sorting
Inftnews | drink tea and send virtual stocks? Analysis of Naixue's tea "coin issuance"
Xavier CPU & GPU high load power consumption test
ethtool 原理介绍和解决网卡丢包排查思路(附ethtool源码下载)
Logical structure and physical structure
Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)
UIO driven framework
[software testing] 03 -- overview of software testing
Xiaomi written test real question 1
一文揭开,测试外包公司的真实情况
【Node】npm、yarn、pnpm 区别
[solved] there is something wrong with the image
Ros2 - configuration development environment (V)
SOC_ SD_ CMD_ FSM
[OBS] x264 Code: "buffer_size“