CodePudding user response:
Start sql2012 can use lag window culvertCan after row_number self before connection
CodePudding user response:
Remained roughly the same is with top 1 access conditions, in reverse chronological order to obtain the latest record, advice or make a simple demand caseSELECT TOP 1 value from Table A
Where A.Value=https://bbs.csdn.net/topics/B.Value and B.T imeFrom Table B