当前位置:网站首页>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
边栏推荐
猜你喜欢
window navicat连接阿里云服务器mysql步骤及常见问题
Mipi interface, DVP interface and CSI interface of camera
睿智的目标检测59——Pytorch Focal loss详解与在YoloV4当中的实现
Ros2 - install ros2 (III)
ROS2——配置开发环境(五)
C learning notes
Ros2 topic (VIII)
扫盲-以太网MII接口类型大全-MII、RMII、SMII、GMII、RGMII、SGMII、XGMII、XAUI、RXAUI
Ros2 - workspace (V)
inux摄像头(mipi接口)简要说明
随机推荐
PHY drive commissioning --- mdio/mdc interface Clause 22 and 45 (I)
【Node】nvm 版本管理工具
Skywalking all
ROS2——配置开发环境(五)
【软件测试】05 -- 软件测试的原则
网易To B,柔外刚中
使用paping工具进行tcp端口连通性检测
【无标题】
[vscode] prohibit the pylance plug-in from automatically adding import
C语言数组专题训练
PHY驱动调试之 --- PHY控制器驱动(二)
睿智的目标检测59——Pytorch Focal loss详解与在YoloV4当中的实现
IPage can display data normally, but total is always equal to 0
U-Boot初始化及工作流程分析
GPIO port bit based on Cortex-M3 and M4 with operation macro definition (can be used for bus input and output, STM32, aducm4050, etc.)
D2L installation
三体目标管理笔记
Volcano 资源预留特性
Ros2 - ros2 vs. ros1 (II)
Mipi interface, DVP interface and CSI interface of camera